...............
...............
Q1: Write SQL commands to solve the Queries on the basis of given tables?
b) To display the details of courses whose fees is in the range of 15000 to 50000 (both values
included).
d) To display details of those courses which are taught by ‘Sulekha’ in descending order of
courses.
f) Display first name and last name of those faculties who teaches “Computer Security”.
i) Display details of those employees whose get hired in the company after ‘{31-10-2001}’?
j) Select COUNT(DISTINCT F_ID) from COURSES;
Q2: Write SQL commands to solve the Queries on the basis of given tables?
a) To display those company name which are having price less than 30000
c) To increase the price by 1000 for those customer whose name starts with ‘S’
d) To add one more column total price with decimal(10,2) to the table customer
e) Display the product name in such a way that product name appears only once.
f) Display customer name, price, qty, company name , city and product name of
those customer whose purchase quantity more than or equal to 10.
Q3: Write SQL commands to solve the Queries on the basis of given tables?
Q4: Write SQL commands to solve the Queries on the basis of given tables?
a) To display TEACHERNAME, PERIODS of all teachers whose periods less than 25.
b) To display TEACHERNAME, CODE and DESIGNATION from tables SCHOOL and ADMIN
whose gender is male.
d) To display CODE, TEACHERNAME and SUBJECT of all teachers who have joined the school
after 01/01/1999.
e) Display teacher name and subject of those teachers whose periods are less than 25 but
experience is more than 10.
Table: worker