VCDQuality Forums
Here you can view your subscribed threads, work with private messages and edit your profile and preferences Frequently Asked Questions Search Home  
VCDQuality Forums : Powered by vBulletin version 2.3.0 VCDQuality Forums > Off Topic > Computer and Audio/Video help > SQL
  Last Thread   Next Thread
Author
Thread Post New Thread    Post A Reply
Jay Are
Jun 2007


Banned

SQL

anyone know sql? i need help figuring out where certain boundaries are set. i didn't write the source, but when we commit certain information to the database, i can't "reset" it due to these restrictions.
let's say i have a field of numbers, namely 10000-30000. if we commit information to the db using a number outside that range, i can't recreate the process of deleting all information from all tables, reinsert it, then run all applicable rules. without seeing all the source, this one might be tricky, so let me know if you wanna take a crack at it and i'll pm you the source.

thanks.


edit:: i also have another unrelated sql issue: i'm trying to write a process that will return only values for the day i happen to query the db. my source so far is

SELECT "HPD:HelpDesk"."Assignee Login Name", "HPD:HelpDesk"."Case ID+", "HPD:HelpDesk"."Create Time"
FROM "HPD:HelpDesk" "HPD:HelpDesk"
WHERE (day("HPD:HelpDesk"."Create Time")>day(getdate()-1))
ORDER BY "HPD:HelpDesk"."Create Time"

the syntax check shows near the "WHERE" statement as being the issue.
error i get is "Expected lexical element not found". maybe some genius out there can get this one going for me 2.

__________________
just pretend i said something smart and funny...

Last edited by Jay Are on 12-12-2007 at 09:34 PM

Report this post to a moderator | IP: Logged

Old Post 12-12-2007 09:29 PM
Jay Are is offline Click Here to See the Profile for Jay Are Click here to Send Jay Are a Private Message Find more posts by Jay Are Add Jay Are to your buddy list Edit/Delete Message Reply w/Quote
65dos
Jun 2003


SeƱor Member

I have only just started learning SQL but a bit of googling suggests your second problem lies with the getdate doo-dad

Thus http://www.sqlteam.com/forums/topic.asp?TOPIC_ID=63511

Report this post to a moderator | IP: Logged

Old Post 12-16-2007 12:28 AM
65dos is offline Click Here to See the Profile for 65dos Click here to Send 65dos a Private Message Find more posts by 65dos Add 65dos to your buddy list Edit/Delete Message Reply w/Quote
Jay Are
Jun 2007


Banned

ok so i made the changes they specify, but then i got the same error nukeawhale got. appreciate it though.

__________________
just pretend i said something smart and funny...

Report this post to a moderator | IP: Logged

Old Post 12-18-2007 03:22 PM
Jay Are is offline Click Here to See the Profile for Jay Are Click here to Send Jay Are a Private Message Find more posts by Jay Are Add Jay Are to your buddy list Edit/Delete Message Reply w/Quote
All times are GMT. The time now is 08:58 PM. Post New Thread    Post A Reply
  Last Thread   Next Thread
Show Printable Version | Email this Page | Subscribe to this Thread

Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is ON
 

< Contact Us - www.vcdhq.com >

Powered by: vBulletin Version 2.3.0
Copyright ©2000, 2001, Jelsoft Enterprises Limited.