Help / pointers needed to create a results page

Hello

I'm after some advice to get me going in the right direction.

I have a lot of data, but now I must get some of them into a useful report. I guess I need to use GROUP BY, but right now I'm just rows of data rather than a useful table.

My mySql db has the following fields (relevant)

bookingID, bookingDate, stats

bookingID is an auto int (and not particularly relevant at the moment)
bookingDate is dateFormat
stats is a char (1) N, X, U, A, F, or P


I'm after a table
who will give me

#Week # | #total number of bookings this week # | #number bookings of F # | #number U booking #.

(I'm happy not to worry about the value of the week and to do it on a daily basis)


Any help appreciated with gratitude

MI - ul

This works very well for me:



SELECT WEEK(b.bookingDate, 5) AS bookingWeek, AS COUNT (b.bookingID)
totalBookings

COUNT(sq_#stat#.bookingID) AS totalBookings_ #stat #.

BOOKINGS b

LEFT JOIN (SELECT b #stat # .bookingID b #stat # stats WHERE = reservations)
("#stat #") sq_ #stat # WE b.bookingID = sq_ #stat # .bookingID

GROUP BY bookingWeek
ORDER BY bookingWeek


Week: #bookingWeek # | Total Bookings: #totalBookings #.<>
list = "" #statsList # "index = delimiters"stat"=" "|" > | " #stat: #
#q1 ['totalBookings_' & stat] [currentrow] #.

Azadi Saryev
SABAI - Dee.com
http://www.SABAI-Dee.com/

Tags: ColdFusion

Similar Questions

  • Need help! How to create a new page?

    Hello

    I'm in the middle of creating a business presentation and I need to chain it all carefully in adobe reader8, the problem is, I have no idea how to create new pages on this subject, and can therefore show coverage of said presentation. Help, please?

    Not possible with Adobe Reader.

  • Best practices and advice to help you need to create an animation

    Hello

    I produce my first project in AE and came across this example which is similar to what I have need to be implemented in the project.

    http://www.Lonja.de/Wikipen/

    (see 8 seconds in the video of imagespot)

    My scenario is that I need to portray a network of nodes that are all related (and possibly growing in number, network links and nodes flourishing points of spawn of other nodes describing the network is an infinite extensible entity).

    Could anyone suggest how I would create this, direct me to tutorials, or let me know what is the term for this kind of kinetic movement related?

    The important thing, I guess, is how to manage the efficient workflow. There must be a better way than the animation of 50 + nodes individually, also how better would be the network links that connect the nodes (as in the example), so that they follow the nodes where they (this movement can be random).

    Any help appreciated

    Thank you

    Matt

    Effects--> Generate--> beam, the Plexus plugin, my old tutorial on creativeCOW network. many ways...

    Mylenium

  • You will need to create a web page that can be added to and modified by the viewers.

    Will start with an excel spreadsheet (probably) and will have to make a page that can be completed and updated by viewers.

    Basically, they will have to make selections and dates to select from an existing list.

    If you use flash for this, you need to be quite advanced with actionscript and also be very good at a server-side php, java programming language, coldfusion, etc.

    your web page needs a central location to store information in a database. in order to do this there is not bad should happen "behind the scenes".

    honestly, your best bet is to set up a google calendar. give to each head of Department access to the calendar. then send an email which said "brand which week you prefer. You can even embed this calendar in your html page and make it look nice.

    The project you have described would take quite a long time for someone clever to compile correctly.

  • Create a login page that is not related to the database

    Hello

    I am really new to dream and ask you for help... Sorry if similar questions have been asked.

    I'm doing a website for my assignment interface, and I need to create a login page.

    How can I make a text box for entry of the identifier and the password? and how can I add a "connect" button?

    Furthermore, there is no connection to a database, it's just a model... so the solution using the codes may not help I guess

    Hello

    Check this thread Re: can I create a login/password in the Muse for a HTML5 page or two?

  • How to create a custom page to page seeds in OFA

    Hello

    I have a requirement in which I need to create a custom Page that should be a replica of Page Standard OAF. Can someone guide me on markets to do so.

    Thank you

    Nancy

    Agree with 1658152...

    But if you still want to create to create your own page and pagelayout region. Take the seeded page from server to the local computer.

    Open both pages in Jdeveloper and copy the page of seed items to your custom page.

    Copy could lead to an error you need to identify and resolve.

    Let us know if you need assistance.

    BR, FLS

  • How to create a report page by using the Web layout editor

    Hi Experts,

    I use wcc11.1.1.7, I need to create the report page by using the Web layout editor, but in this applet (editor), there are only 3 types of link to the page: local page, external page, query, it must be of type of the active report (historical), why I can't see them? y at - it components should I activate this?

    Best regards

    It doesn't have to be in the link on the Page, but in the Page Type.

    See the documentation for http://docs.oracle.com/cd/E28280_01/doc.1111/e26694/e02_weblayout_edit.htm#i1068085 for more details.

  • Hello, I'm testing creative cloud, I really need help to know which module to install to create simple web pages

    Hello, I'm testing creative cloud, I really need help to know which module to install to create simple web pages

    Hi Cyril,.

    It depends on what you want to do. If you have experience with coding, you can download Dreamweaver to create Web sites by using the two code + design of knowledge.

    With Muse, you can design beautiful Web pages and Muse will generate the code for you.

    I hope this helps!

    -Emily

  • I need to create a complex scenario that results represent the user choices

    Here's the scenario:

    The user answers 20 questions that offer every three choices (not a quiz).  Based on collated responses, a 'score' or 'level of advancement' leads to a specific page.

    So, if they answered questions and the "score" indicates they are a beginner on average, a page will load with links to resources for a beginner.

    If they are advanced, an advanced results page will load etc.

    The problem is that there is no right or wrong answer, these are attitudinal and behavioural issues.

    I want to also create five categories with a percent complete when they arrive at the page "score" relevant to their level there are five bars indicating their level of development in each of the five categories, and if they are at beginner level into three categories, intermediate to that and advance to one pictured, but the collective means of 'mark' are a way of "Beginner".

    I have never attempted anything of this complex, would appreciate an overview.

    I don't really agree with rod that questions could not be used at all the. I used MCQ to create sort of a survey measuring more than once. Here is an example of a different use case, but perhaps you will see the link to what you want to achieve:

    Classified the investigation? -Captivate Blog

    With the help of some system of quiz variable to store the results in variables user is another tip.

    Secrets of cpQuizInfoAnswerChoice and... - Captivate blog

    This conditional logic card is in fact the first thing I would say to create. And take into account all possible situations and combinations. This is certainly the first step.

    Remember that Captivate comes with training interactions that might be useful if you decide to create also custom questions: buttons, checkboxes, drop-down list. They could save you time.

    You don't say if you have marked you quiz in different parts that you want to branch to (beginner, intermediate, advanced)?

  • IN PHOTOSHOP ELEMENTS 13 HOW CREATE A VIRGIN PAGE ON WHICH PASTE THE RESULT TO DO A PRINT SCREEN?

    IN PHOTOSHOP ELEMENTS 13 HOW CREATE A VIRGIN PAGE ON WHICH PASTE THE RESULT TO DO A PRINT SCREEN?

    The editor > file > new > Blank File

  • I need to create a form on the web page.

    I need to create a form on my webpage as;

    < td align = "center" >$ <? PHP echo $row_Recordset2 ["a100"];? > * <? PHP echo $row_Recordset1 ["margin_100"];? > < table >

    But the ' *' is the display of the web page as a text, but not a function.

    Try

    $

  • Helps to create a Menu Page

    I was wonderiong could someone point me in the right direction for a sample page for a MENU.

    I am wanting to create a menu page that looks like this:

    CATEGORY1
    Application1
    Application2
    Request 3

    CATEGORY2
    Application4
    Application5

    etc.
    When the user clicks on the 'Application' links, they need to be directed to a new application (Page 1 or even a House alias name)

    I have a table that contains the data

    MENU_ID (PK)
    MENU_NAME
    PARENT_ID
    APP_ID
    PAGE_ID
    MENU_ORDER

    Which has something like data:
    1, category 1, null, null, null, 1
    3, Application1, 1, 100, 1, 1
    4, Application1, 1, 101, 1, 2
    5, Application1, 1, 102, 1, 3

    2, Category2, null, null, null, 2
    6, Application4, 2, 103, 1, 1
    7, 5, 2, 103, 1, 2

    Can someone point me at least in the right direction. Is there a sample application that I can weave or what I have to start from scratch?

    Stewart

    This blog describes exactly what you want: http://apps2fusion.com/at/kr/413-maintaining-authentication-between-apex-applications

  • Help to create a 'News' page please!

    I want to create a News Page, which will display only lines 5 or 6 first in an article and is followed by a link "read more" and directs the reader to another page.

    So far, I created a page with a form that allows the administrator to easily add items to the database. And I created the News Page using a table and repeating recordset.

    What I don't know is how to display ONLY the first lines of the article without having to make another field in my database which contains only the first paragraph of article. Any ideas?

    I'm trying to do this as a user friendly to the person article inputing so they do not need to divide the article, or do too much editing before sticking in the original form.

    Please note: I am new to web design and I have very limited knowledge of the code. I do this throughout the design view in Dreamweaver CS3. And I'm using php.

    Hi you would insert it as follows: -.

    $query_rsNews = "SELECT SUBSTR ('Article', 0.10), 'Date', title OF news";

    The SUBSTR tells your database to retrieve only the 10 fist words in the table to section of your database, (change the 10 number of words you need).

    PZ

  • Firefox used to distincly highlight sites already visited (on the results page) and 'snap' to the part previously used in the results page. No more! Help please.

    Firefox used to select distinctly the sites already visited when returning to a results page.
    It is also used to 'snap' to the area from the results page just visited.
    This seems more to happen. Please notify

    Go to tools in your menu bar, then options. Where we see Firefox goes..., click the menu drop-down and click on do not forget history, and then click OK. Waalaa. your websites is highlighted in pink. Good luck. Lynne

  • someone will help me please, I am a senior and I forgot my password the I have a laptop with windows 7, the Reset Wizard is telling me that I need to create a password reset disk how do

    I have an acer laptop I am a senior and I forgot my password, Reset Wizard tells me I need to create a password how to reset cd dom that

    http://support.Microsoft.com/kb/305478/en-GB

Maybe you are looking for