I created the following table and put some values. Table book (Booked integer primary key, booklet velar (20), year integer, publisher integer foreign key reference publisher (publisher), value integer, number integer) create table publisher (publisher integer) primary key, publication name varchar (20)) table Book Writer (Booked Integer Alien Key Reference Books (book), Writer Fuller to create author (author's integer primary key, authorname varchar (20)) Authors (authorid, income integer references) Create table bookkeepers (booked integer books of foreign key references, Bookbook varchar (20), Times integer) Create table reviewer (reviewer integer primary key, review name varchar (20 ) Book ListViews (Book Integrated Foreign Key Reference Books (Book), Reviewer Integer Foreign Key Reference Reviewer (Reviewer), Digit Integer)
Now, I have SQL Server 20 00 I want to solve the following query. Find out all the books published in 2003 and review the B Y both "Sammer Tulpule" ??? And "Hemant Mahata" ??? . I do not have any idea about the query, how can I write it?
Thank you, worship
Booked FDR as a SELECT b bookID (Books B Inner Bookwave BR on (BRBIPID = BBIID)) Inner Job Reviewer on On (Borderreirid = R. Revivorrade) WHERE Year = 2003 and R. Revue in in ('Sammer Tulpule', 'Hemant Mahata' 'Group by B. Booking HOVING COUNT (R. RAVIERRID)> gt; = 2 Obviously, it is assuming that you The book review has not duplicated the entries in the table.
Comments
Post a Comment