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
|