473,396 Members | 1,815 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,396 software developers and data experts.

need help to advance db

Hi!

I've got a sport-database for my students with
name - class - teacher - year of birth - 60meter-runningtime - 100meter
- longjump - ...(and some other disciplines)

The whole program itself is running great, i have reports to filter the
best in each discipline and I can set a filter for the class, for the
number of students to be shown in the reprts and some others.

As for here, quite okay

Now, there gonna be some competitions and my colleagues and I have to
pick out the best students and tell them to take part in these
competitions.

So, we need a report, which is sortet by class.
And in each age-group the best 5(the number should be taken out of a
form)
in each discipline shout be filter out of the whole database.

At time a made it with an "INSERT INTO"-Query for each discipline, don't
know the english word for it.

So I've got a new table with the data.
But those at the time 5 "INSERT INTO"-Queries take so long...
One of thise queries looks like this:

INSERT INTO tblKlassendruck ( 60m, Jahrgang, Klasse, Zuname, Vorname,
Lehrkraft, Rang )
SELECT qry60m.[60m], qry60m.Jahrgang, qry60m.Klasse, qry60m.Zuname,
qry60m.Vorname, qry60m.Lehrkraft, (Select Count (*) FROM [qry60m] as X
WHERE [X].[60m]<[qry60m].[60m])+1 AS Rang
FROM qry60m
WHERE ((((Select Count (*) FROM [qry60m] as X WHERE [X].[60m]<[qry60m].
[60m])+1)<=[Formulare]![frmLA]![txtAnzahl])) OR (((((Select Count (*)
FROM [qry60m] as X WHERE [X].[60m]<[qry60m].[60m])+1)<=[Formulare]!
[frmLA]![txtAnzahl]) Is Null));
Can someone help me to advance my database?
I could also send the db with some data to show, what i mean.
ICQ-Uin also available.

I'm working on WinXP Sp2, Access 2000/XP
thank you in advance!
mathew

Nov 13 '05 #1
2 1314
Greier Matthias wrote:
Hi!

I've got a sport-database for my students with
name - class - teacher - year of birth - 60meter-runningtime - 100meter
- longjump - ...(and some other disciplines)

The whole program itself is running great, i have reports to filter the
best in each discipline and I can set a filter for the class, for the
number of students to be shown in the reprts and some others.

As for here, quite okay

Now, there gonna be some competitions and my colleagues and I have to
pick out the best students and tell them to take part in these
competitions.

So, we need a report, which is sortet by class.
And in each age-group the best 5(the number should be taken out of a
form)
in each discipline shout be filter out of the whole database.

At time a made it with an "INSERT INTO"-Query for each discipline, don't
know the english word for it.

So I've got a new table with the data.
But those at the time 5 "INSERT INTO"-Queries take so long...
One of thise queries looks like this:

INSERT INTO tblKlassendruck ( 60m, Jahrgang, Klasse, Zuname, Vorname,
Lehrkraft, Rang )
SELECT qry60m.[60m], qry60m.Jahrgang, qry60m.Klasse, qry60m.Zuname,
qry60m.Vorname, qry60m.Lehrkraft, (Select Count (*) FROM [qry60m] as X
WHERE [X].[60m]<[qry60m].[60m])+1 AS Rang
FROM qry60m
WHERE ((((Select Count (*) FROM [qry60m] as X WHERE [X].[60m]<[qry60m].
[60m])+1)<=[Formulare]![frmLA]![txtAnzahl])) OR (((((Select Count (*)
FROM [qry60m] as X WHERE [X].[60m]<[qry60m].[60m])+1)<=[Formulare]!
[frmLA]![txtAnzahl]) Is Null));
Can someone help me to advance my database?
I could also send the db with some data to show, what i mean.
ICQ-Uin also available.

I'm working on WinXP Sp2, Access 2000/XP


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

I'm not complete sure, but something like this:

INSERT INTO tblKlassendruck ([60m], Jahrgang, Klasse, Zuname, Vorname,
Lehrkraft, Rang )
SELECT [60m], Jahrgang, Klasse, Zuname, Vorname, Lehrkraft,
(Select Count(*) FROM [qry60m]
WHERE [60m]<[qry60m].[60m])+1 AS Rang
FROM qry60m
WHERE (SELECT Count(*)
FROM [qry60m]
WHERE [60m]<[qry60m].[60m])+1 <=
[Formulare]![frmLA]![txtAnzahl]
OR [Formulare]![frmLA]![txtAnzahl]) Is Null

The WHERE clause needed correction: the OR phrase was trying to
determine 2 conditions at one time, which is impossible.
--
MGFoster:::mgf00 <at> earthlink <decimal-point> net
Oakland, CA (USA)

-----BEGIN PGP SIGNATURE-----
Version: PGP for Personal Privacy 5.0
Charset: noconv

iQA/AwUBQnaGM4echKqOuFEgEQJHYwCbBfGXtSsz3trOTPcvCT+wkI 7yNTwAn1lC
o1BKFIbJhzBPFp/HD8AS3HMd
=uIZv
-----END PGP SIGNATURE-----
Nov 13 '05 #2
MGFoster <me@privacy.com> wrote in
news:MC*****************@newsread1.news.pas.earthl ink.net:
I'm not complete sure, but something like this:

INSERT INTO tblKlassendruck ([60m], Jahrgang, Klasse, Zuname, Vorname,
Lehrkraft, Rang )
SELECT [60m], Jahrgang, Klasse, Zuname, Vorname, Lehrkraft,
(Select Count(*) FROM [qry60m]
WHERE [60m]<[qry60m].[60m])+1 AS Rang
FROM qry60m
WHERE (SELECT Count(*)
FROM [qry60m]
WHERE [60m]<[qry60m].[60m])+1 <=
[Formulare]![frmLA]![txtAnzahl]
OR [Formulare]![frmLA]![txtAnzahl]) Is Null

The WHERE clause needed correction: the OR phrase was trying to
determine 2 conditions at one time, which is impossible.

Hi! Thanks you for your reply!
But the query itself works perfect! So I think it's okay like it is.
Maybe I can send you a sample how it works...
Just drop me a line

Thanks
Mathew

Nov 13 '05 #3

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

Similar topics

2
by: Joh | last post by:
Hello, (sorry long) i think i have missed something in the code below, i would like to design some kind of detector with python, but i feel totally in a no way now and need some advices to...
2
by: solartimba | last post by:
I am using the advance() auxiliary STL iterator function to move a map iter forward, but I read that there is no check to keep the iter from pointing past the end of the map. How is this problem...
9
by: netpurpose | last post by:
I need to extract data from this table to find the lowest prices of each product as of today. The product will be listed/grouped by the name only, discarding the product code - I use...
2
by: ratedr1 | last post by:
I am currently trying to label rings (jewelry). They make specialized tags (shaped like a butterfly, barbell, dumbell, etc) for this purpose, the label goes through the ring, and then the ends...
14
by: Nikola | last post by:
I need a function that reads from a txt file and randomly chooses a line from which retrieves a string (with spaces) and returns it to main function. thx
6
by: sivashankar | last post by:
hello experts -can any one give me some module to do in asp.net -if u give me the description i will give u with free of cost,since am new now am in my final semester of MCA,just give me some...
12
by: Noel | last post by:
Hello, I'm currently developing a web service that retrieves data from an employee table. I would like to send and retrieve a custom employee class to/from the webservice. I have currently coded...
8
by: Bruno Alexandre | last post by:
Hi guys, I'm using a session to save an ArrayList, so I do not read Database everytime user reload the page or enter the site (the Data is consistent for all entire session time when the user is...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
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...

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.