Quantcast
Channel: dBforums – Everything on Databases, Design, Developers and Administrators
Viewing all articles
Browse latest Browse all 13329

can this be done by a query or?

$
0
0
Student lectures, subjects and locations are stored in a table like this and now we are in record ID number 154.
Code:

ID  studentname    lectureplace      lecturesubject
1        jack          A            politics   
2        steve          A            politics   
3        jack          B            math   
4        steve          A            politics   
5        jack          B            politics   
6        joe            A            politics   
.          .            .                .
.          .            .                .
154      Jane          B            Geography

We know that the next 32 lectured will be presented by jack on politics ,but we don’t know about the exact location(lectureplace). Can we instantly fill the next 32 records with the data that we know, such as student name and subject, but the lectureplace is left blank and it will be filed later when we know about the location? The resultant table will have ID from 155 to 187, stunetname:jack, lecturesubject: politics but the location will be filled later when the place of the presented lecture is known .
Please lets forget if this job makes sense or not, and lets think if this is possible to be done.
Thank you

Viewing all articles
Browse latest Browse all 13329

Trending Articles