Already have an account? Get multiple benefits of using own account!
Login in your account..!
Remember me
Don't have an account? Create your account in less than a minutes,
Forgot password? how can I recover my password now!
Enter right registered email to receive password!
Given the following relationsTRAIN (NAME, START, DEST)TICKET (PNRNO., START, DEST, FARE) PASSENGER (NAME, ADDRESS, PNRNO.) Write SQL expressions for the following queries: Note: Assume NAME of Train is a column of Ticket.(i) List the names of passengers who are travelling from the begin to the destination station of the train.(ii) List the names of passengers who have a return journey ticket.(iii) Insert a new Shatabti train from Delhi to Bangalore.(iv) Cancel the ticket of Tintin.
(i) SELECT P.NAME FROM TRAIN T, TICKET I, PASSENGER P WHERE P.PNRNO = I.PNRNO AND T.NAME = I.NAME AND T.START = I.START AND T.DEST = I.DEST (ii) SELECT NAME FROM PASSENGER WHERE PNRNO IN (SELECT DISTINCT A.PNRNO FROM TICKET A, TICKET B WHERE A.PNRNO = B.PNRNO AND A.START = B.DEST AND A.DEST = B.START) (iii) INSERT INTO TRAIN VALUES(‘Shatabdi', ‘Delhi', ‘Banglore' (iv) DELETE FROM TICKET WHERE PNRNO = (SELECT PNRNO FROM PASSENGER WHERE NAME = ‘Tintin')
explain equi-join using illustration
What are the time stamps associated with each data item? W-timestamp (Q) denotes the largest time stamp if any transaction that implemented WRITE (Q) successfully. R-timesta
Haw does it work one database application
What is magnetic disks?explain it? Magnetic disk provides the bulk of secondary storage of modern computer system. The disk capacity is growing at over 50% per year. But the st
A Functional dependency is described by X Y between two groups of attributes Y and X that are subsets of R specifies a constraint on the possible tuple that can make a relation
What are the features of embedded SQL? Explain. Embedded SQL - SQL could be implemented within two ways. It can be used interactively or embedded in a host language or throu
Ask q“A database will be made to store information about patients in a hospital. On arrival, each patient’s personal details (name, address, and telephone number) are recorded wher
What is meant by mean time to failure? The mean time to failure is the amount of time that the system could run continuously without failure.
how to design a bakery business in data base
What are the two types of indices? The two types of indices are:- A) Dense index B) Sparse index
Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!
whatsapp: +91-977-207-8620
Phone: +91-977-207-8620
Email: [email protected]
All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd