I hope my post won't offend people in this group, as it's not my intention
to annoy anyone or get someone do my work for me. I just have nobody
else to ask for help :(
I'm studying informatics and I am to make a DB application. I got a partner
and we agreed to write it in Java . This way we can get finall marks also
from Java cours and save some work. Unfortunately our good cooperation has
ended here. My partner got focused on writing GUI. He don't want to listen
to my argument which is 'what we really need is a sensible schema of DB'. He
finds what we have now is good. He wants to work with this tables with java
language .
Could someone take a look on this an write his opinion. Maby he will listen to
you :(
We do an application that allows to check bus connection from one city to
another.
The client should pick a city from a combo box.
He will receive a name of line, the departure time and the fee.
-- name of a city-to combobox and it's code -for use in select
create table Stations (
StCode varchar2(4),
StName nvarchar2(48),
Primary key(StCode)
);
--distance between two cities
create table Segments (
StCode1 varchar2(4),
StCode2 varchar2(4),
Distance number(5),
Foreign key (StCode1) references Stations(StCode),
Foreign key (StCode2) references Stations(StCode),
Primary key (StCode1, StCode2)
);
-- full name of line -to print as a result, and it's code
create table Lines (
LiCode varchar2(8),
LiName nvarchar2(128),
Primary key (LiCode)
);
--code of a line, code of a town on this line, number- tells which bus stop on
the line is the town( the first on this line, second... ). On line A->B , A
is the first bus stop and on A<-B B is the first bus stop. This is how we
distinguish directions- by the number of a bus stop.
create table StLines (
LiCode varchar2(8),
StCode varchar2(4),
StNum number(2),
Foreign Key (LiCode) references Lines(LiCode),
Foreign Key (StCode) references Stations(StCode),
Primary Key (LiCode, StCode)
);
He writes freakish loops in java to get information from this DB, and cout
distanece between towns ( to count fee). We must set departure time but I
realy don't know in which table shuld I put it. It don't like the schema we
have now.
Has someone of you work on similar project? I've been looking in google for
3 days and I don't get interesting hit's. I wan't to correct this tables to
be able to work with them just with elegant SQL and Oracle , not with special
constuction in java.
Looking for critical voices
sad me
Paul - 26 Jul 2005 19:23 GMT
>I'm studying informatics and I am to make a DB application. I got a partner
>and we agreed to write it in Java .
At least you're being honest.
> This way we can get finall marks also
>from Java cours and save some work. Unfortunately our good cooperation has
>ended here. My partner got focused on writing GUI. He don't want to listen
>to my argument which is 'what we really need is a sensible schema of DB'. He
>finds what we have now is good. He wants to work with this tables with java
>language .
Drop your partner. You *_must_* have a db design before you begin
coding. Of course, you may modify it afterwards, but you must have a
db - he's trying to do the marathon before he's even learnt to walk.
>He writes freakish loops in java to get information from this DB, and cout
>distanece between towns ( to count fee). We must set departure time but I
>realy don't know in which table shuld I put it. It don't like the schema we
> have now.
Sounds like a lot of the work could be done using PL/SQL.
Can't you go to your professor for advice? That's what they're there
for, is to teach. Obviously, you think about the problem and then come
up with your own ideas and ask him about them. Then he should point
you in the right direction, but if he can see that you've done
something, he should be helpful.
Paul...

Signature
plinehan __at__ yahoo __dot__ __com__
XP Pro, SP 2,
Oracle, 9.2.0.1.0 (Enterprise Ed.)
Interbase 6.0.1.0;
When asking database related questions, please give other posters
some clues, like operating system, version of db being used and DDL.
The exact text and/or number of error messages is useful (!= "it didn't work!").
Thanks.
Furthermore, as a courtesy to those who spend
time analysing and attempting to help, please
do not top post.