Viewing 15 posts - 12,946 through 12,960 (of 15,381 total)
Take a look at the first link in my signature for best practices on posting questions. Basically you need to post ddl (create table statements), sample data (insert statements) and...
February 21, 2012 at 8:17 am
GrassHopper (2/21/2012)
Sean Lange (2/21/2012)
February 21, 2012 at 8:14 am
And why the cursor? You should be able to this in a single update statement without too much trouble.
February 21, 2012 at 8:09 am
Eugene Elutin (2/21/2012)
The question I would have: why would you want to call such procs from MSAccess?
I have to admit I shudder everytime people on here talk about using Access...
February 21, 2012 at 8:07 am
You might want to add an IF EXISTS around both the create and drop statements. The way this is if you run it twice with the same parameter it will...
February 21, 2012 at 7:50 am
It is hard to say without more details but you say it is just a single query? You will be a lot happier down the road using a view instead...
February 21, 2012 at 6:33 am
Gotcha, the problem is that there is only an event on the table. Like I said, the view doesn't change, the base table is what changes. You got me stumped...
February 20, 2012 at 2:42 pm
Sure here is the basic syntax...
Create procedure SomeProc
(
@Variable somedatatype
) as begin
insert SomeTable (Columns)
select Columns from SomeOtherTable
...
February 20, 2012 at 2:18 pm
A view is not the data...it is...well a view of the data. You don't change the data in a view, you change the data in a table.
It seems there is...
February 20, 2012 at 2:14 pm
I think the OP is looking for something like this:
select * from
(
select c.name as CarName, r.*, row_Number() over(partition by c.idCar order by date desc) as RowNum
from #cars c
join #rent...
February 20, 2012 at 12:53 pm
SQLKnowItAll (2/20/2012)
I felt charitable 🙂
Cool then maybe I can now feel like not being a snarly ogre. 😀
February 20, 2012 at 12:48 pm
What do you mean? Please see the first link in my signature about best practices for posting questions.
February 20, 2012 at 12:42 pm
This is relatively simple but without ddl (create table scripts) and some sample data (insert statements) it is not likely you will get much help. Please provide as already requested....
February 20, 2012 at 12:25 pm
Are you doing any actual processing of anything in here? This looks like nothing more than a select statement? If so, then a view is probably a better choice than...
February 20, 2012 at 8:27 am
OYeah (2/19/2012)
Data type is DATEMy error.. apologies. DB is oracle and I am using Oracle SQL Developer. I am not sure if DateDiff function works.
You will probably have...
February 19, 2012 at 3:58 pm
Viewing 15 posts - 12,946 through 12,960 (of 15,381 total)