NotesWhat is notes.io?

Notes brand slogan

Notes - notes.io

--describe the table sites
DESC sites;

--testing for table sites
SELECT site_id,state_ref
FROM sites;

--Better test method for table sites
SELECT DEREF(state_ref),site_id
FROM sites s;

--Best test method for table sites
SELECT s.site_id,s.state_ref.state state,s.state_ref.country country
FROM sites s;

--Best test method for table sites and select only bihar
SELECT s.site_id,s.state_ref.state state,s.state_ref.country country
FROM sites s
WHERE s.state_ref.state = 'Bihar' ;

--to view the structure of table
DESC sites;

--Poor test for table sites
SELECT site_id,address
FROM sites;

--to view the structure of datatype address_type
DESC address_type;

--Best test for table sites
SELECT s.site_id,s.address.street street,s.address.city city,s.address.country country
FROM sites s;

-- column width
COLUMN street FORMAT A20;
COLUMN city FORMAT A20;
COLUMN country FORMAT A20;
COLUMN description FORMAT A20;
COLUMN course_title FORMAT A10;
COLUMN student_surname FORMAT A20;

--Best test for table sites only selecting street 343 elm street
SELECT s.site_id,s.address.street street,s.address.city city,s.address.country country
FROM sites s
WHERE s.address.street = '343 ELM STREET';

--Structure of table sites and varray classroom
DESC sites;
DESC classroom_type;

--to view primary and varray column
SELECT site_id,classroom FROM sites;

--to view only primary key and varray column
SELECT s.site_id,c.room_number,c.capacity,c.description
FROM sites s,
TABLE(s.classroom) c
WHERE site_id =1;

--structure of invoice table
DESC invoices;

--to view primary and nested column
SELECT invoice_number,invoice_item FROM invoices;

--structure of type which nested table s based on
DESC invoice_item_table_type;

--view primary and all the content of nested column
SELECT i.invoice_number,ii.student_surname,ii.course_title,ii.start_date,ii.end_date,ii.amount
FROM invoices i,
TABLE(i.invoice_item) ii;

--VIEW ONLY NESTED TABLE INFORMATION
SELECT VALUE(ii)
FROM THE(
SELECT invoice_item
FROM invoices
WHERE invoice_number = 10007) ii;
     
 
what is notes.io
 

Notes is a web-based application for online taking notes. You can take your notes and share with others people. If you like taking long notes, notes.io is designed for you. To date, over 8,000,000,000+ notes created and continuing...

With notes.io;

  • * You can take a note from anywhere and any device with internet connection.
  • * You can share the notes in social platforms (YouTube, Facebook, Twitter, instagram etc.).
  • * You can quickly share your contents without website, blog and e-mail.
  • * You don't need to create any Account to share a note. As you wish you can use quick, easy and best shortened notes with sms, websites, e-mail, or messaging services (WhatsApp, iMessage, Telegram, Signal).
  • * Notes.io has fabulous infrastructure design for a short link and allows you to share the note as an easy and understandable link.

Fast: Notes.io is built for speed and performance. You can take a notes quickly and browse your archive.

Easy: Notes.io doesn’t require installation. Just write and share note!

Short: Notes.io’s url just 8 character. You’ll get shorten link of your note when you want to share. (Ex: notes.io/q )

Free: Notes.io works for 14 years and has been free since the day it was started.


You immediately create your first note and start sharing with the ones you wish. If you want to contact us, you can use the following communication channels;


Email: [email protected]

Twitter: http://twitter.com/notesio

Instagram: http://instagram.com/notes.io

Facebook: http://facebook.com/notesio



Regards;
Notes.io Team

     
 
Shortened Note Link
 
 
Looding Image
 
     
 
Long File
 
 

For written notes was greater than 18KB Unable to shorten.

To be smaller than 18KB, please organize your notes, or sign in.