Forum: MySQL Jul 26th, 2008 |
| Replies: 6 Views: 2,530 Hello rich_m,
how are you?
I am afraid you will have to wait at the Greek calends.
Once MySql company had a wonderful oracle clone. It was MaxDB, formerly SAPDB. And lots of people thought... |
Forum: MySQL Jul 26th, 2008 |
| Replies: 5 Views: 1,273 hi velodrom
SELECT current_date() - INTERVAL 1 DAY AS "Help yesterday !",
current_date() + INTERVAL 1 DAY AS "for tomorrow never come !";
may also give some results.
krs, tesu |
Forum: Database Design Jul 25th, 2008 |
| Replies: 2 Views: 1,175 Hello
that depends on your specific database system. There are Database systems where you can
type in: select myBirthday - now() as "My age is:" ;
You need to know the current-date function... |
Forum: MySQL Jul 25th, 2008 |
| Replies: 2 Views: 1,142 Hello
Your mistake! You cannot do that !
-----
tesu |
Forum: MySQL Jul 25th, 2008 |
| Replies: 5 Views: 1,273 next: today + 1
previous: today - 1 |
Forum: MS SQL Jul 25th, 2008 |
| Replies: 3 Views: 1,059 hello,
>>> "select * from table1 where RAM between ... "
Never use *, the sign of slackers! You must always enumerate only those columns you really need for your datagrid!
There are lots of... |
Forum: MS SQL Jul 20th, 2008 |
| Replies: 3 Views: 2,277 Hello dmmckelv,
When Edgar Frank Codd invited relational databases his primary idea was to found it on
logic algebra and set theory. The rows of relational tables (aka relations) are sets.... |
Forum: Database Design Jul 15th, 2008 |
| Replies: 5 Views: 1,454 I did not change your table tbl_Author which already has Author-Name. Therefore I left out your 3rd table ! |
Forum: Database Design Jul 15th, 2008 |
| Replies: 5 Views: 1,454 Hello,
in tbl_poems exists a transitive dependency poem-ID -> Author-ID -> Book-ID. Therefore, this table does not satisfy 3NF. fk Author-ID should be removed and inserted into tbl_Book. The... |
Forum: MySQL Jul 13th, 2008 |
| Replies: 1 Views: 2,348 Hi
There is a function LAST_INSERT_ID() what returns the last-created auto-increment value. So first insert parent data what creates a new auto-increment ID. Then insert row in child table where... |
Forum: MySQL Jul 13th, 2008 |
| Replies: 4 Views: 2,698 Hi jakesee
For better handling you need one root only. This can easily be done by defining a master root where all other roots can be formally connected to. Only this master root will not have a... |
Forum: MySQL Jul 12th, 2008 |
| Replies: 4 Views: 2,698 hi,
you may google Joe Celko trees
krs,
tesu |
Forum: C++ Jul 9th, 2008 |
| Replies: 13 Views: 2,518 You may study programming languages like FORTH or Postscript how they do computing using stacks.
tesu |
Forum: Database Design Jul 9th, 2008 |
| Replies: 3 Views: 1,353 Ah, you again
Did you proceed in understanding EERM?
I call people who put a magical, universal "id" column with an auto-increment on all their tables "id-iots" ! (Joe Celko) |
Forum: MySQL Jul 2nd, 2008 |
| Replies: 3 Views: 1,639 that s true ! try it without _
-----
tesu |
Forum: MS SQL Jul 2nd, 2008 |
| Replies: 2 Views: 2,472 [QUOTE=harcaype;639245]
SELECT Vio.ViolationList.ViolationCode,Records.[Violation Commited],Vio.ViolationList.FineAmnt,DriverInfo.[Plate Number]
,DriverInfo.[License Number],DriverInfo.[Reg'd Last... |
Forum: MySQL Jul 2nd, 2008 |
| Replies: 11 Views: 4,226 Hi
Do below statements not work on mysql?
DELETE FROM accounts WHERE usrn = 'caughtusername';
COMMIT;
As nav33n already suggested.
krs, |
Forum: MS SQL Jul 1st, 2008 |
| Replies: 4 Views: 2,558 amongst other things, it depends on precision... |
Forum: MS SQL Jul 1st, 2008 |
| Replies: 4 Views: 2,558 Hi,
So you have a table consisting of 6 columns: Column Name Data Type Length
Turnover where the latter should be of decimal data type???
What do you mean by "that the max value could be... |
Forum: MySQL Jun 29th, 2008 |
| Replies: 1 Views: 891 Hi veledrom,
I think your SQL is syntactically not corret: If insert is done from result set given by select you must not use values part. Also, if you want to insert two values you must also... |
Forum: MySQL Jun 27th, 2008 |
| Replies: 4 Views: 6,371 Hi tuse
How are you?
Well, if you had access to grant table mysql.user you would have also been able to
SELECT User, Password FROM mysql.user. You got it? Yes, you would be able to hack... |
Forum: C++ Jun 26th, 2008 |
| Replies: 23 Views: 4,445 Hello Shaun32887
following is a small class what has been posted by a programming virtuoso here in forum on daniweb.com. Unfortunately, I have not recorded his name.
//
// String passing... |
Forum: C++ Jun 24th, 2008 |
| Replies: 6 Views: 1,073 instead of: int i = ch; // stores same code in an int (wrongly)
you might try: int*i =(int*)ch;
then
cin>>ch; // enter A for example
cout << ch; // gives A
cout << i; // gives 0x41... |
Forum: C++ Jun 23rd, 2008 |
| Replies: 6 Views: 1,073 Hi
Your code:
char ch;
int i = ch;
You didn't assign a value to ch. So i is undefined. Also this would not work if you do cin >> ch.
You may try this instead:
char xxx = 'x'; |
Forum: C++ Jun 22nd, 2008 |
| Replies: 8 Views: 841 Well dear Superfat, the most effective solution for you problem has already been given by vijayan121. Unfortunately you aren't able to understand his fine function. So GOD's advice should be... |
Forum: C++ Jun 18th, 2008 |
| Replies: 6 Views: 1,958 sorry, completely nonsense what I wrote ! so forget it.
true, new <--> delete and malloc <--> free
sorry for telling that nonsens
krs,
tesu |
Forum: C++ Jun 18th, 2008 |
| Replies: 6 Views: 1,958 Hi mrboolf,
Consider your constructor and destructor:
In C++ memory is allocated by applying "new". Its partner is "free" ! You should never apply "delete", which is plain C, on memory... |
Forum: Database Design Jun 17th, 2008 |
| Replies: 5 Views: 1,429 Hi chsarp_vijay,
Derby is pure Java. if you want to use it, you must program Java. Why not using SQL Anywhere/Ultralight from worldwide leader in mobile computing, Sybase? There mobile computing... |
Forum: MS SQL Jun 16th, 2008 |
| Replies: 15 Views: 2,285 Hi
you may start SQL Server Management Studio (If you are using SQL server Express you can download SQL Server Management Studio separately) an then create staff table, enter some rows, for... |
Forum: C++ Jun 16th, 2008 |
| Replies: 12 Views: 2,652 Hi niek_e
You are right, I have overlooked the semicolon at he far right.
Intuitively I also would put a semicolon at left side if for-init statement is off. But the ISO standard tells the... |
Forum: C++ Jun 16th, 2008 |
| Replies: 12 Views: 2,652 Hi QuantNeeds
Your for loop is correct. It corresponds completely with the Standard ISO/IEC 14882:1998(E) of C++. So your compiler seems to be something outdated, especially the phrase... |
Forum: Database Design Jun 14th, 2008 |
| Replies: 2 Views: 1,680 Hi motofoto
There is kind of inheritance - in EERM - where we have Generalization / Specialization, such called isa-relationships. Maybe you should first design an EERM. Your implementation idea... |
Forum: MS SQL Jun 13th, 2008 |
| Replies: 15 Views: 2,285 After having done that hard job shutdown server is badly necessary ! |
Forum: C++ Jun 8th, 2008 |
| Replies: 6 Views: 3,846 Hi all,
though Ancient Dragon has already answered almost every question, I would like to put in my twopenn'orth too.
-Why use the stack of the space is so limited?
Stack is not that... |
Forum: MS SQL Jun 7th, 2008 |
| Replies: 10 Views: 11,353 oops wujtehacjusz, you may have a look at issue date;) |
Forum: MySQL Jun 6th, 2008 |
| Replies: 10 Views: 4,761 Hello kutta_vin,
well, "forgotten to mention" has created some superfluous work. However it is rather simple to get the same result from your modified tables. Supposing a table act2(AccountId,... |
Forum: MySQL Jun 5th, 2008 |
| Replies: 10 Views: 4,761 Hi kutta_vin
this is really a hard task. Finally I have got the following solution:
select transaction, credit, debit, credit+coalesce((select sum(credit)
from act b where b.transaction <... |
Forum: MS SQL Jun 5th, 2008 |
| Replies: 9 Views: 2,348 Sorry, I thought Access would have been able to handle joins. The inner joins you need can be replaced by cross products and join conditions in where clause, try this:
select c.CustomerID,... |
Forum: MS SQL Jun 4th, 2008 |
| Replies: 9 Views: 2,348 Hi HB25,
Your first select should look like:
select c.CustomerID, c.Surname, c.Address, c.Town, c.Postcode,
o.OrderID, o.Date,
i.ProductID, i.Qty, p.Description from Customer c
join... |
Forum: MySQL Jun 4th, 2008 |
| Replies: 10 Views: 4,761 Welcome kutta_vin,
I really can't understand anything of your code and of that you are asking for. Perhaps you can give a small sample, for example on how the output of your select statement... |