Freelancer

SQL Query Help  

SQL Query Help is project number 487741
posted at Freelancer.com. Click here to post your own project.


| More Free Trial For New Buyers
 

Status: Awarded

Selected Providers: cyberiarob

Budget: $30-250

Created: 08/12/2009 at 20:18 EDT

Bid Count: 2

Average Bid:
$ 30

08/13/2009 at 20:18 EDT

Project Creator: Penhall
Employer Rating: 10/1010/1010/1010/1010/1010/1010/1010/1010/1010/10 (4 reviews)

Bid On This Project
 

Description

I am populating a radiobuttonlist control for a conference registration. The client has now asked that a max number criteria be added. (so it is either disabled or delisted from the radiobuttonlist control once a max number for each session is reached).

Currently, I am building the control using the query:
SELECT '<a href=javascript:Start(''popup.aspx?SessionID=' + CAST(Sessions.ID AS NVARCHAR) + ''')>' + Sessions.SessionTitle + '</a> - <font color=' + Themes.color + '>' + Themes.Title + '</font>' AS SessionName, Sessions.ID, Sessions.Block
FROM Sessions INNER JOIN Themes ON Sessions.Theme = Themes.ID INNER JOIN SessionBlocks ON Sessions.Block = SessionBlocks.ID WHERE (Sessions.Block = 2) ORDER BY Sessions.Block, Title,SessionName

- the sessionname above is just me making it a hyperling to a popup details page.

at this point, the tables as used above are:

Sessions
Themes
SessionBlocks

New to the database is now a table called Rooms which has a primary key of RoomNumber and is a foreign key in the Sessions table field called Room. Rooms.Capacity has the max number of registrants allowed.

The field to count for each record is in a table called 00_MainRegistration the Sessions.ID is stored in a field such as FridayAM.

Basically, it would have to count the number of times that the Sessions.ID is in the FridayAM field and compare it to the Rooms.Capacity figure.

Hope that makes sense but can clarify further if needed.

Messages Posted:0 View project clarification board Post message on project clarification board

Bid On This Project
 

If you are the project creator or one of the bidders Log In for more options

 

30

1 day

08-12-2009 22:48 EDT


Please Read PM

help

 

30

1 day

08-12-2009 22:51 EDT


I would have absolutely no problem providing the query that you need. I have a lot of experience writing very complex SQL queries. I am in the Central time zone, so the minimal time difference would enable any necessary real-time communication. I look forward to working with you on this project.

help


    Bid on this Project