Ques:ย What is a database?
Ans: A information may be a logically coherent assortment of information with some inherent that means, representing some facet of the globe and that is meant, designed, and inhabited with information for a selected purpose.
Ques:ย What is DBMS?
Ans: It is a set of programs that permits users to form and maintain info. In alternative words it’s general computer code that has the users with the processes of shaping, constructing, and manipulating the info for numerous applications.
Ques:ย What is a Database system?
Ans: The database and DBMS software together is called a Database system.
Ques:ย What are the advantages of DBMS?
Ans:
- Redundancy is
- Unauthorized access is
- Providing multiple user
- Enforcing integrity
- Providing backup and
Ques:ย What are the disadvantages of a File Processing System?
Ans:
- Data redundancy and
- Difficult in accessing
- Data ๏ท Data integrity.
- Concurrent access is not
- Security
Ques:ย Describe the three levels of data abstraction?
Ans: There are three levels of abstraction:
- Physical level: The lowest level of abstraction describes how data are
- Logical level: The next higher level of abstraction, describes what data are stored in database and what relationship among those data.
- View level: The highest level of abstraction describes only part of entire
Ques:ย Define the “integrity rules”?
Ans: There are two Integrity rules.
- Entity Integrity: States that “Primary key cannot have NULL value”
- Referential Integrity: States that “Foreign Key can be either a NULL value or should be Primary Key value of other relation.
Ques:ย What are extension and intention?
Ans:
- Extension: It is the number of tuples present in a table at any This is time dependent.
- Intension: It is a constant value that gives the name, structure of table and the constraints laid on
Ques:ย What is System R? What are its two major subsystems?
Ans: System R was designed and developed over the period of 1974-79 at IBM San Jose Research Center. It is a prototype and its purpose was to demonstrate that it is possible to build a Relational System that can be used in a real-life environment to solve real-life problems, with a performance at least comparable to that of the existing system.
Its two subsystems are:
- Research Storage
- System Relational Data
Ques:ย How is the data structure of System R different from the relational structure?
Ans: Unlike Relational systems in System R:
- Domains are not supported
- Enforcement of candidate key uniqueness is optional
- Enforcement of entity integrity is optional
- Referential integrity is not enforced
Ques:ย What is Join?
Ans: An SQL Join is used to combine data from two or more tables, based on a common field between them. For example, consider the following two tables.
Student Table
ENROLLNO | STUDENTNAME | ADDRESS |
1000 | geek1 | geeksquiz1 |
1001 | geek2 | geeksquiz2 |
1002 | geek3 | geeksquiz3 |
Student Course Table
COURSEID | ENROLLNO |
1 | 1000 |
2 | 1000 |
3 | 1000 |
1 | 1002 |
2 | 1003 |
Following is a join query that shows the names of students enrolled in different courseIDs.
SELECT StudentCourse.CourseID, Student.StudentName FROM StudentCourse INNER JOIN Customers ON StudentCourse.EnrollNo = Student.EnrollNo ORDER BY StudentCourse.CourseID;
The above query would produce the following result.
COURSEID | STUDENTNAME |
1 | geek1 |
1 | geek2 |
2 | geek1 |
2 | geek3 |
3 | geek1 |
Ques:ย What is a view in SQL? How to create one
Ans: A view is a virtual table based on the result-set of an SQL statement. We can create using create view syntax.
CREATE VIEW view_name AS SELECT column_name(s) FROM table_name WHERE condition;
Ques.ย There is a table where only one row is fully repeated. Write a Query to find the repeated row
Name | Section |
abc | CS1 |
bcd | CS2 |
abc | CS1 |
In the above table, we can find duplicate rows using the below query.
SELECT name, section FROM tbl GROUP BY name, section HAVING COUNT(*) > 1
Ques.ย What is the Query to find the 2nd highest salary of an employee?
Ans:
SELECT max(salary) FROM EMPLOYEES WHERE salary IN (SELECT salary FROM EMPLOYEEs MINUS SELECT max(salary) FROM EMPLOYEES);
OR
SELECT max(salary) FROM EMPLOYEES WHERE salary <> (SELECT max(salary) FROM EMPLOYEES);
Ques.ย Get employee details from employee table whose first name ends with ‘n’ and name contains 4 letters
Select * from EMPLOYEE where FIRST_NAME like '___n'; #(Underscores)
Ques.ย Get employee details from employee table whose first name starts with ‘J’ and name contains 4 letters
Select * from EMPLOYEE where FIRST_NAME like 'J___'; #(Underscores)
Ques.ย Get employee details from employee table whose Salary greater than 600000
Select * from EMPLOYEE where Salary >600000;
Ques.ย Get employee details from employee table whose Salary less than 800000
Select * from EMPLOYEE where Salary < #800000
Ques.ย Get employee details from employee table whose Salary between 500000 and 800000.
Select * from EMPLOYEE where Salary between 500000 and 800000;
buy cialis 5mg pills cialis overnight shipping buy generic ed pills for sale
duricef 250mg generic buy combivir pills oral propecia 1mg
generic estradiol 1mg order generic estradiol prazosin usa
diflucan 100mg ca diflucan 200mg price order cipro sale
brand vermox 100mg order mebendazole 100mg sale buy tadalis sale
order generic flagyl 200mg sulfamethoxazole cheap keflex pill
order cleocin 300mg for sale buy clindamycin generic buy ed pills
purchase nolvadex generic ceftin 250mg usa cost cefuroxime
order amoxicillin 250mg for sale purchase clarithromycin sale order clarithromycin 500mg pill
clonidine 0.1mg oral catapres cost order spiriva 9 mcg
buy careprost online cheap order trazodone 50mg without prescription trazodone 50mg over the counter
order generic minocycline 50mg pioglitazone 15mg over the counter purchase actos without prescription
buy sildenafil 50mg pills buy sildenafil 100mg online cheap sildenafil for sale
buy generic arava 20mg buy sulfasalazine for sale buy generic sulfasalazine
accutane usa buy accutane 10mg generic buy azithromycin 500mg sale
buy azithromycin without a prescription order generic prednisolone 5mg oral neurontin 800mg
stromectol for sale buy stromectol 3mg pills prednisone 20mg us
cheap furosemide furosemide us brand albuterol 4mg
levitra cheap zanaflex pill hydroxychloroquine tablet
altace pills buy glimepiride 4mg pills purchase etoricoxib pills
buy levitra paypal buy vardenafil 20mg generic plaquenil online buy
buy generic benicar over the counter calan 120mg pills buy depakote sale
clobetasol cream generic cordarone 100mg generic amiodarone
carvedilol canada purchase cenforce generic buy generic aralen online
buy acetazolamide pills for sale acetazolamide usa buy azathioprine 50mg for sale
lanoxin where to buy digoxin over the counter molnunat 200 mg canada
naproxen for sale online prevacid 15mg uk buy prevacid generic
olumiant uk metformin canada buy lipitor pills for sale
order albuterol 100 mcg online order protonix without prescription pyridium 200 mg canada
cost singulair 5mg symmetrel 100 mg brand purchase dapsone generic
nifedipine 30mg brand order adalat 10mg sale allegra cost