I have a very large table in my database and I am starting to get this error
Could not allocate a new page for
database 'mydatabase' because of
insufficient disk space in filegroup
'PRIMARY'. Create the necessary space
by dropping objects in the filegroup,
adding additional files to the
filegroup, or setting autogrowth on...
i have a table "request" with 4 columns namely:
1.recId :long primary key
2.interactionId:long
3.requestedBy:boolean
4.requestedType:boolean
and data is as follows:
VALUES
(185,455699,0,5),
(186,455746,0,1),
(187,455746,1,1),
(188,455752,0,1),
(189,455753,0,1),
(190,455753,1,1),
(191,455754,1,1)
i want a query to fetch all the row...
Hi,
In one of our databases, there is a table with dozens of columns, one of which is a geometry column.
I want to SELECT rows from the table, with the geometry transformed to another SRID. I want to use something like:
`SELECT *`
in order to avoid:
SELECT col_a, col_b, col_c, col_d, col_e, col_f,
col_g, col_h, transform(t...
Hey, I have a table like this
Name State Amount
------------------------------
Pump 1 Present 339
Pump 1 Optimized 88
Which I want to transpose something like this
Pump 1 Present 339 Optimized 88
How can I do this with MS SQL 2000? I tried to search for a solution, but couldn't find the most fitting solution...
Cannot stop and drop oracle Queue.
Following code
BEGIN
DBMS_AQADM.STOP_QUEUE (
queue_name => 'TEST_QUEUE');
DBMS_AQADM.DROP_QUEUE(
queue_name => 'TEST_QUEUE');
END;
/
produces following errors:
ERROR at line 1:
ORA-04068: existing state of packages has been discarded
ORA-04065: not executed, altered or dropped stored procedure ...
Hi,
I have a simple SQL insert statement of the form:
insert into MyTable (...) values (...)
It is used repeatedly to insert rows and usually works as expected. It inserts exactly 1 row to MyTable, which is also the value returned by the Delphi statement AffectedRows:= myInsertADOQuery.ExecSQL.
After some time there was a temporary n...
i have stored in the database as
location
India,Tamilnadu,Chennai,Annanagar
while i bind in the grid view it ll be displaying as
'India,Tamilnadu,Chennai,Annanagar' this format.
but i need to be displayed as 'Annanagar,Chennai,Tamilnadu,India' in this format. how to perform this reverse order in query or in c#
note: this is stored ...
I am using SQL Server 2008. I tried to modify the table. But it not allowing to update.
How to give UPDATE permission in SQL Server 2008?
...
I am new to SQL and I need to build a database for a grocery store(not real, just a course assignment)
i have two fields from two different tables - supplied price - the price that the store buys from the supplier and price that is given to the customers
How can I make a constraint that insures that supplied price is lower then the pr...
Hello!
To empty database table, I use this SQL Query:
TRUNCATE TABLE `books`
How to I Truncate table using Django models and orm?
I've tried this, but it doesn't work:
Book.objects.truncate()
...
I want to compute result from this table.
I want quantity 1 - quantity2 as another column in the table shown below.
this table has more such records
I am trying to query but not been able to get result.
select * from v order by is_active desc, transaction_id desc
PK_GUEST_ITEM_ID FK_GUEST_ID QUANTITY TRANSACTI...
I have been looking for a way to define an autoincrement data type in Oracle and have found these questions on Stack Overflow:
Autoincrement in Oracle
Autoincrement Primary key in Oracle database
The way to use autoincrement types consists in defining a sequence and a trigger to make insertion transparent, where the insertion trigger...
Good Afternoon,
I realise there is a command:
BACKUP DATABASE [DB Name] TO DISK [PATH]
Is it possible too backup to a remote location? - E.G. the web server rather than the database server?
Many Thanks,
Joel
...
I have many table in my database it contain many key relation. i need to list out the table and its corresponding key name and the relationship table.
...
I have table one which looks like this. And I want to get data like
1.2, "My name is " , 1.6, "Earl" ,12345, "Rock Hard Awesome"
I don't think it is possible with this schema but wanted to see if I am wrong. I tried a cross join but got ever possibility not just the actual values.
What is supposed to be accomplished is the values tabl...
hello everyone
i have a complex query to be written but cannot figure it out
here are my tables
Sales --one row for each sale made in the system
SaleProducts --one row for each line in the invoice (similar to OrderDetails in NW)
Deals --a list of possible deals/offers that a sale may be entitled to
DealProducts --a list ...
Hi,
I've got a table which has an id and a clob content like:
Create Table v_example_l (
nip number,
xmlcontent clob
);
We insert our data:
Insert into V_EXAMPLE_L (NIP,XMLCONTENT)
Values (17852,'<section><block><name>delta</name><content>548484646846484</content></block></section>');
Insert into V_EXAMPLE_L (NIP,XMLCONTENT...
I have 3 databases. 1 links to 2, 2 links to 3. I'd like to query tables in 3, from 1. I tried third_db_tab@3@2 and it did not work. Wondering if this is possible and if so, what the syntax is.
...
Hello
We have a very strange issue with a database that has been moved from staging to production.
The first time the database was moved it was by detaching, copying and reattaching, the second time we tried restoring from a backup of the staging.
Both SQL Servers are the same version of MS SQL 2008, running on 64 bit hardware.
The c...
Hey guys,
so I have two tables. They are pictured below.
I have a master table "all_reports". And a user table "user list". The master table may have users that do not exist in the user list. I need to add them to the user list.
The master table may have duplicates in them (check picture). The master list does not contain all the inf...