Click here to Skip to main content
15,668,923 members
Home / Discussions / Database
   

Database

 
QuestionCreating SQL statements in Access Databases Pin
Member 115083508-Mar-15 14:25
Member 115083508-Mar-15 14:25 
AnswerRe: Creating SQL statements in Access Databases Pin
Richard Andrew x648-Mar-15 15:33
professionalRichard Andrew x648-Mar-15 15:33 
GeneralRe: Creating SQL statements in Access Databases Pin
Member 115083508-Mar-15 15:42
Member 115083508-Mar-15 15:42 
AnswerRe: Creating SQL statements in Access Databases Pin
Richard Andrew x648-Mar-15 15:48
professionalRichard Andrew x648-Mar-15 15:48 
GeneralRe: Creating SQL statements in Access Databases Pin
Member 115083508-Mar-15 15:59
Member 115083508-Mar-15 15:59 
AnswerRe: Creating SQL statements in Access Databases Pin
Richard Andrew x648-Mar-15 16:21
professionalRichard Andrew x648-Mar-15 16:21 
GeneralRe: Creating SQL statements in Access Databases Pin
Member 115083508-Mar-15 16:25
Member 115083508-Mar-15 16:25 
AnswerRe: Creating SQL statements in Access Databases Pin
Member 115083508-Mar-15 16:56
Member 115083508-Mar-15 16:56 
List the guests by name and the number of times each has reserved a room at one of our hotels. Arrange the list in order from most-frequent to least-frequent guest.

My two related tables are Guest and Reservation.I can't have the FK GuestNo be one of the attributes.

This is what I have so far.

SQL
Select FirstName, LastName, GuestNo FROM GUEST INNER JOIN RESERVATION ON GUEST.firstname = RESERVATION.guestno


I'm not sure about GuestNo.
AnswerRe: Creating SQL statements in Access Databases Pin
Member 115083508-Mar-15 17:18
Member 115083508-Mar-15 17:18 
GeneralRe: Creating SQL statements in Access Databases Pin
Chris Quinn8-Mar-15 22:07
Chris Quinn8-Mar-15 22:07 
AnswerRe: Creating SQL statements in Access Databases Pin
Abdulnazark9-Mar-15 6:51
Abdulnazark9-Mar-15 6:51 
GeneralRe: Creating SQL statements in Access Databases Pin
Member 115083509-Mar-15 17:01
Member 115083509-Mar-15 17:01 
GeneralRe: Creating SQL statements in Access Databases Pin
Abdulnazark9-Mar-15 21:06
Abdulnazark9-Mar-15 21:06 
AnswerRe: Creating SQL statements in Access Databases Pin
Member 115083509-Mar-15 16:48
Member 115083509-Mar-15 16:48 
GeneralRe: Creating SQL statements in Access Databases Pin
Member 115083509-Mar-15 17:59
Member 115083509-Mar-15 17:59 
QuestionVB.NET MYSQL SAVE DATAGRIDVIEW VALUES TO DATABASE Pin
KipkoechE28-Feb-15 22:01
KipkoechE28-Feb-15 22:01 
AnswerRe: VB.NET MYSQL SAVE DATAGRIDVIEW VALUES TO DATABASE Pin
manchanx1-Mar-15 1:01
professionalmanchanx1-Mar-15 1:01 
GeneralRe: VB.NET MYSQL SAVE DATAGRIDVIEW VALUES TO DATABASE Pin
KipkoechE3-Mar-15 19:48
KipkoechE3-Mar-15 19:48 
AnswerRe: VB.NET MYSQL SAVE DATAGRIDVIEW VALUES TO DATABASE Pin
Mycroft Holmes1-Mar-15 13:54
professionalMycroft Holmes1-Mar-15 13:54 
GeneralHow to increase SQL Query Performance for the Oracle Database Pin
Blog euth26-Feb-15 23:08
Blog euth26-Feb-15 23:08 
GeneralRe: How to increase SQL Query Performance for the Oracle Database Pin
Jörgen Andersson26-Feb-15 23:37
professionalJörgen Andersson26-Feb-15 23:37 
GeneralRe: How to increase SQL Query Performance for the Oracle Database Pin
Mycroft Holmes1-Mar-15 13:48
professionalMycroft Holmes1-Mar-15 13:48 
GeneralRe: How to increase SQL Query Performance for the Oracle Database Pin
PIEBALDconsult6-Mar-15 14:56
professionalPIEBALDconsult6-Mar-15 14:56 
QuestionDifficult Select Query Pin
Dimitris Sakellariou25-Feb-15 23:59
Dimitris Sakellariou25-Feb-15 23:59 
AnswerRe: Difficult Select Query Pin
Corporal Agarn26-Feb-15 0:56
professionalCorporal Agarn26-Feb-15 0:56 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.