SlideShare a Scribd company logo
1 of 2
1) What is RDBMS?
Relational database system.in rdbms the tables are realated to each other.
Its share storage and information.
2) Explain Left outer join ,right outer join , Self join ?
Left outer join are to join left table to all records match to right table and no records are match insert null
Right outer join are same as left outer join but right table records are join.
Self join are one table are join self table created twice match the records.
3) Explain the difference between DELETE , TRUNCATE and DROP commands?
Delete commands are use for delete column and records.
Truncat commands are delete the all records in table.
Drop commands are delete table structure.its work without having any records in that table.
4) Write a query to create a table named Employee_Test and insert some test data(column will be ID, Name ,
Salary , Joining date)
Create table Employee_Test(id varchar(10),name varchar(15),salary number(10),joiningdate date);
5)Which of the following are the five built-in functions provided by SQL?
A ) COUNT, SUM, AVG, MAX, MIN
6)Which of the following statements contains an error?
D) SELECT empid WHERE empid =56949 AND lastname = ‘SMITH’;
7 )Description of the
D) SELECT COUNT (DISTINCT dept_id) FROM EMPWHERE last _name=' SACHIN ';
8)
B) WHERE SALARY > 8000
9)
Query within Query is calles sub query.
10)
Date function are display current date

More Related Content

What's hot

Linked list (introduction) 1
Linked list (introduction) 1Linked list (introduction) 1
Linked list (introduction) 1DrSudeshna
 
Linked stacks and queues
Linked stacks and queuesLinked stacks and queues
Linked stacks and queuesRamzi Alqrainy
 
Data structure & its types
Data structure & its typesData structure & its types
Data structure & its typesRameesha Sadaqat
 
Deletion from single way linked list and search
Deletion from single way linked list and searchDeletion from single way linked list and search
Deletion from single way linked list and searchEstiak Khan
 
Presentation on Data Structure
Presentation on Data StructurePresentation on Data Structure
Presentation on Data StructureA. N. M. Jubaer
 
Introduction to data structure ppt
Introduction to data structure pptIntroduction to data structure ppt
Introduction to data structure pptNalinNishant3
 
Lecture 1 data structures and algorithms
Lecture 1 data structures and algorithmsLecture 1 data structures and algorithms
Lecture 1 data structures and algorithmsAakash deep Singhal
 
Devry bis 155 week 2 quiz data analysis
Devry bis 155 week 2 quiz data analysisDevry bis 155 week 2 quiz data analysis
Devry bis 155 week 2 quiz data analysisshyaminfo104
 
Linked list in Data Structure and Algorithm
Linked list in Data Structure and Algorithm Linked list in Data Structure and Algorithm
Linked list in Data Structure and Algorithm KristinaBorooah
 
Linked List, Types of Linked LIst, Various Operations, Applications of Linked...
Linked List, Types of Linked LIst, Various Operations, Applications of Linked...Linked List, Types of Linked LIst, Various Operations, Applications of Linked...
Linked List, Types of Linked LIst, Various Operations, Applications of Linked...Balwant Gorad
 

What's hot (20)

Linked list (introduction) 1
Linked list (introduction) 1Linked list (introduction) 1
Linked list (introduction) 1
 
Data structure and its types.
Data structure and its types.Data structure and its types.
Data structure and its types.
 
Linked stacks and queues
Linked stacks and queuesLinked stacks and queues
Linked stacks and queues
 
Linked list
Linked listLinked list
Linked list
 
Data structure & its types
Data structure & its typesData structure & its types
Data structure & its types
 
Deletion from single way linked list and search
Deletion from single way linked list and searchDeletion from single way linked list and search
Deletion from single way linked list and search
 
Doubly Linked Lists
Doubly Linked ListsDoubly Linked Lists
Doubly Linked Lists
 
Presentation on Data Structure
Presentation on Data StructurePresentation on Data Structure
Presentation on Data Structure
 
Data structure
Data structureData structure
Data structure
 
What is data structure
What is data structureWhat is data structure
What is data structure
 
Introduction to data structure ppt
Introduction to data structure pptIntroduction to data structure ppt
Introduction to data structure ppt
 
single linked list
single linked listsingle linked list
single linked list
 
linked list
linked list linked list
linked list
 
Lecture 1 data structures and algorithms
Lecture 1 data structures and algorithmsLecture 1 data structures and algorithms
Lecture 1 data structures and algorithms
 
Linked List
Linked ListLinked List
Linked List
 
Devry bis 155 week 2 quiz data analysis
Devry bis 155 week 2 quiz data analysisDevry bis 155 week 2 quiz data analysis
Devry bis 155 week 2 quiz data analysis
 
Linked list in Data Structure and Algorithm
Linked list in Data Structure and Algorithm Linked list in Data Structure and Algorithm
Linked list in Data Structure and Algorithm
 
Normalization
NormalizationNormalization
Normalization
 
Linked List, Types of Linked LIst, Various Operations, Applications of Linked...
Linked List, Types of Linked LIst, Various Operations, Applications of Linked...Linked List, Types of Linked LIst, Various Operations, Applications of Linked...
Linked List, Types of Linked LIst, Various Operations, Applications of Linked...
 
General Data structures
General Data structuresGeneral Data structures
General Data structures
 

Viewers also liked

Bt0075, rdbms and my sql
Bt0075, rdbms and my sqlBt0075, rdbms and my sql
Bt0075, rdbms and my sqlsmumbahelp
 
DBMS FOR STUDENTS MUST DOWNLOAD AND READ
DBMS FOR STUDENTS MUST DOWNLOAD AND READDBMS FOR STUDENTS MUST DOWNLOAD AND READ
DBMS FOR STUDENTS MUST DOWNLOAD AND READamitp26
 
Database fundamentals
Database fundamentalsDatabase fundamentals
Database fundamentalsLogitrain
 
Dbms tutorial
Dbms tutorialDbms tutorial
Dbms tutorialankindian
 
Learn sql queries
Learn sql queriesLearn sql queries
Learn sql queriesSanjay Mago
 
Dbms interview questions
Dbms interview questionsDbms interview questions
Dbms interview questionsambika93
 
The advantages of a dbms
The advantages of a dbmsThe advantages of a dbms
The advantages of a dbmsadnan_bappy
 
Dbms Concepts
Dbms ConceptsDbms Concepts
Dbms Conceptsadukkas
 
Lecture 09 dblc centralized vs decentralized design
Lecture 09   dblc centralized vs decentralized designLecture 09   dblc centralized vs decentralized design
Lecture 09 dblc centralized vs decentralized designemailharmeet
 
Comparison of Relational Database and Object Oriented Database
Comparison of Relational Database and Object Oriented DatabaseComparison of Relational Database and Object Oriented Database
Comparison of Relational Database and Object Oriented DatabaseEditor IJMTER
 
Concurrency control
Concurrency controlConcurrency control
Concurrency controlkansel85
 

Viewers also liked (20)

Faq dbms
Faq dbmsFaq dbms
Faq dbms
 
Introduction to-dbms
Introduction to-dbmsIntroduction to-dbms
Introduction to-dbms
 
Rdbms
RdbmsRdbms
Rdbms
 
Bt0075, rdbms and my sql
Bt0075, rdbms and my sqlBt0075, rdbms and my sql
Bt0075, rdbms and my sql
 
Database & dbms
Database & dbmsDatabase & dbms
Database & dbms
 
DBMS FOR STUDENTS MUST DOWNLOAD AND READ
DBMS FOR STUDENTS MUST DOWNLOAD AND READDBMS FOR STUDENTS MUST DOWNLOAD AND READ
DBMS FOR STUDENTS MUST DOWNLOAD AND READ
 
Rdbms day3
Rdbms day3Rdbms day3
Rdbms day3
 
Rdbms concepts
Rdbms conceptsRdbms concepts
Rdbms concepts
 
PL/SQL Part 3
PL/SQL Part 3PL/SQL Part 3
PL/SQL Part 3
 
PL/SQL Part 2
PL/SQL Part 2PL/SQL Part 2
PL/SQL Part 2
 
Database fundamentals
Database fundamentalsDatabase fundamentals
Database fundamentals
 
Dbms tutorial
Dbms tutorialDbms tutorial
Dbms tutorial
 
Learn sql queries
Learn sql queriesLearn sql queries
Learn sql queries
 
Dbms interview questions
Dbms interview questionsDbms interview questions
Dbms interview questions
 
The advantages of a dbms
The advantages of a dbmsThe advantages of a dbms
The advantages of a dbms
 
Dbms Concepts
Dbms ConceptsDbms Concepts
Dbms Concepts
 
Lecture 09 dblc centralized vs decentralized design
Lecture 09   dblc centralized vs decentralized designLecture 09   dblc centralized vs decentralized design
Lecture 09 dblc centralized vs decentralized design
 
Sql Queries
Sql QueriesSql Queries
Sql Queries
 
Comparison of Relational Database and Object Oriented Database
Comparison of Relational Database and Object Oriented DatabaseComparison of Relational Database and Object Oriented Database
Comparison of Relational Database and Object Oriented Database
 
Concurrency control
Concurrency controlConcurrency control
Concurrency control
 

Similar to Sql questions (2)

GROUP-4-Database-Connectivity-with-MySqL.pptx
GROUP-4-Database-Connectivity-with-MySqL.pptxGROUP-4-Database-Connectivity-with-MySqL.pptx
GROUP-4-Database-Connectivity-with-MySqL.pptxJohnLhoydMaderable
 
DATABASE MANAGMENT SYSTEM (DBMS) AND SQL
DATABASE MANAGMENT SYSTEM (DBMS) AND SQLDATABASE MANAGMENT SYSTEM (DBMS) AND SQL
DATABASE MANAGMENT SYSTEM (DBMS) AND SQLDev Chauhan
 
Database index
Database indexDatabase index
Database indexRiteshkiit
 
SQL dabatase interveiw pdf for interveiw preparation
SQL dabatase  interveiw pdf for interveiw preparationSQL dabatase  interveiw pdf for interveiw preparation
SQL dabatase interveiw pdf for interveiw preparationkumarvikesh2841998
 
SQL -Beginner To Intermediate Level.pdf
SQL -Beginner To Intermediate Level.pdfSQL -Beginner To Intermediate Level.pdf
SQL -Beginner To Intermediate Level.pdfDraguClaudiu
 
Informatica interview db questions
Informatica interview  db questionsInformatica interview  db questions
Informatica interview db questionsSairam Telidevara
 
Database Application for La Salle
Database Application for La SalleDatabase Application for La Salle
Database Application for La SalleJimmy Chu
 
Top 20 SQL interview questions.pdf
Top 20 SQL interview questions.pdfTop 20 SQL interview questions.pdf
Top 20 SQL interview questions.pdfAnanthReddy38
 
SQL Server Learning Drive
SQL Server Learning Drive SQL Server Learning Drive
SQL Server Learning Drive TechandMate
 
Quick And Dirty Databases
Quick And Dirty DatabasesQuick And Dirty Databases
Quick And Dirty Databasescwarren
 

Similar to Sql questions (2) (20)

GROUP-4-Database-Connectivity-with-MySqL.pptx
GROUP-4-Database-Connectivity-with-MySqL.pptxGROUP-4-Database-Connectivity-with-MySqL.pptx
GROUP-4-Database-Connectivity-with-MySqL.pptx
 
Interview Questions.pdf
Interview Questions.pdfInterview Questions.pdf
Interview Questions.pdf
 
Ora faq
Ora faqOra faq
Ora faq
 
Ora faq
Ora faqOra faq
Ora faq
 
DATABASE MANAGMENT SYSTEM (DBMS) AND SQL
DATABASE MANAGMENT SYSTEM (DBMS) AND SQLDATABASE MANAGMENT SYSTEM (DBMS) AND SQL
DATABASE MANAGMENT SYSTEM (DBMS) AND SQL
 
Database index
Database indexDatabase index
Database index
 
Mysql
MysqlMysql
Mysql
 
MSSQL_Book.pdf
MSSQL_Book.pdfMSSQL_Book.pdf
MSSQL_Book.pdf
 
Viva voce
Viva voceViva voce
Viva voce
 
SQL dabatase interveiw pdf for interveiw preparation
SQL dabatase  interveiw pdf for interveiw preparationSQL dabatase  interveiw pdf for interveiw preparation
SQL dabatase interveiw pdf for interveiw preparation
 
SQL -Beginner To Intermediate Level.pdf
SQL -Beginner To Intermediate Level.pdfSQL -Beginner To Intermediate Level.pdf
SQL -Beginner To Intermediate Level.pdf
 
Joins
JoinsJoins
Joins
 
Informatica interview db questions
Informatica interview  db questionsInformatica interview  db questions
Informatica interview db questions
 
ADVANCE ITT BY PRASAD
ADVANCE ITT BY PRASADADVANCE ITT BY PRASAD
ADVANCE ITT BY PRASAD
 
Database Application for La Salle
Database Application for La SalleDatabase Application for La Salle
Database Application for La Salle
 
Top 20 SQL interview questions.pdf
Top 20 SQL interview questions.pdfTop 20 SQL interview questions.pdf
Top 20 SQL interview questions.pdf
 
database .pptx
database .pptxdatabase .pptx
database .pptx
 
SQL Server Learning Drive
SQL Server Learning Drive SQL Server Learning Drive
SQL Server Learning Drive
 
SQL Joins
SQL JoinsSQL Joins
SQL Joins
 
Quick And Dirty Databases
Quick And Dirty DatabasesQuick And Dirty Databases
Quick And Dirty Databases
 

Sql questions (2)

  • 1. 1) What is RDBMS? Relational database system.in rdbms the tables are realated to each other. Its share storage and information. 2) Explain Left outer join ,right outer join , Self join ? Left outer join are to join left table to all records match to right table and no records are match insert null Right outer join are same as left outer join but right table records are join. Self join are one table are join self table created twice match the records. 3) Explain the difference between DELETE , TRUNCATE and DROP commands? Delete commands are use for delete column and records. Truncat commands are delete the all records in table. Drop commands are delete table structure.its work without having any records in that table. 4) Write a query to create a table named Employee_Test and insert some test data(column will be ID, Name , Salary , Joining date) Create table Employee_Test(id varchar(10),name varchar(15),salary number(10),joiningdate date); 5)Which of the following are the five built-in functions provided by SQL? A ) COUNT, SUM, AVG, MAX, MIN 6)Which of the following statements contains an error? D) SELECT empid WHERE empid =56949 AND lastname = ‘SMITH’; 7 )Description of the D) SELECT COUNT (DISTINCT dept_id) FROM EMPWHERE last _name=' SACHIN '; 8) B) WHERE SALARY > 8000
  • 2. 9) Query within Query is calles sub query. 10) Date function are display current date