473,395 Members | 1,905 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

progressive number

Consider two tables:

book(id, title, date_written , author_id)
author(id, name)

the date_written field is a DATE field ad rappresents the date the book
was written.

i would like to make a query like this:

SELECT name , title , date_written
FROM book INNER JOIN author ON ( book.author_id = author.id )
ORDER BY author.id , time_written

the result would be

King , Running Man , 1978-9-12
King , Salem's Lot , 1980-3-29
[...]
Shakespeare, Romeo and Juliet , 1214-6-13
Shakespeare , Amlet , 1216-11-6
Shakespeare , ... , 1226-5-22
[...]

but I would like to add a column with the "sequence number" of the book,
related to the author, like

King , Running Man , 1 , 1978-9-12
King , Salem's Lot , 2 , 1980-3-29
[...]
Shakespeare, 1 , Romeo and Juliet , 1214-6-13
Shakespeare , 2 , Amlet , 1216-11-6
Shakespeare , 3 , ... , 1226-5-22
[...]

what query must I issue?
can anyone help me?

tia

--
Mattia Cazzola

Jul 19 '05 #1
0 2169

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Dianne Combs | last post by:
Dear Online Reader or Editor ... If you could ... please take a look at our new online treeless edition newspapers, The Northeast Progressive Advocate-Journal and our sister newspaper the San...
8
by: EAS | last post by:
Hey, I'm new to python (and programming in general) so I'll prolly be around here a lot... Anyways, I've found out how to make a "guess my number game" where the player guesses a number between...
5
by: Pecos Bill | last post by:
Hi to everybody, I'd like to know how to extract a progressive number in a select. Example.. Select * from employers Name Surname Position Age Hire Date Progressive...
3
by: Girish | last post by:
Hi All, I have written a component(ATL COM) that wraps Xerces C++ parser. I am firing necessary events for each of the notifications that I have handled for the Content and Error handler. The...
1
by: Chris Jakeman | last post by:
Hi, Internet Explorer doesn't load JPGs progressively. I need to show a large graphic (100KB) on dial-up lines, so I searched for a way to emulate progressive loading of images. Couldn't find...
0
by: Ryan Cooper | last post by:
Hello .NET Gurus! I have been posting messages all over the .NET forums to no avail, so I thought I'd give this newsgroup a shot as well. I am trying to figure out how to detect if a...
1
by: Carlo | last post by:
I have a table with a lot of fields. One is a numeric field. How can I introduce in these field a progressive number. I have to change at times the start number. example:...
0
by: nhacnhac | last post by:
Hi Guys does anyone knows if the a JPEG file saved as JFIF version 1.02 is always considered progressive? I need to create a program in C# to open JPEG files and upload just the non-progressive...
3
by: mukesh | last post by:
I have designed a form in ms access to show the account of firms. In the total column i need a progressive total of one or more column of this form. what to do please thanks in advance
5
by: byteit101 | last post by:
I am working a an Image processing program, and I want to save my jpegs as being progressive (blurry to sharp instead of line by line while it loads). this does not work howerver: ImageCodecInfo...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.