How to select nth row from a table if they are not in any order
how to display values in one table by refering and checking values in another table
I think this one will be tricky. What I have is a table like: CREATE TABLE PHOTO_DETAIL ( ”PHOTO” VARCHAR2(25 BYTE) NOT NULL ENABLE, ”NUM_LINE” NUMBER(20,0) NOT NULL ENABLE, ”PHOTO_LINE” VARCHAR2(180 BYTE) ) what I am going to have is: CREATE TABLE PHOTO_DETAIL ( ”PHOTO” [...]
i create a table with attribute date and i want to store date as “Date-Month-year” .what procedure to create a date and how we able to insert the required format by using sql server 2000.
I’m trying to figure out what the best type of join I could use in TSQL for merging records in about 6 tables where there is a match. So I have 6 different tables where there are many matching records. So I figured that I would use a left join in my first join, keep [...]
I have used CREATE TABLE to create a PF which contain a DATE field. And then use CREATE INDEX to create a LF with data selections. However, when I check the DATE field, I find that, in the PF, its Date Format is *ISO; but in the LF, its Date Format has been changed to [...]
Need to compare two tables A & B with identical fields and report when rows don’t match and rows from B are missing in A.
I have a sql table where the field tr_time contains the trade time and datatype of the filed is Datetime. I want to retrieve records where the time is in multiple of 5 seconds, so records where the seconds are in multiple of 5 only. How can I do this?
We divided our tables from table zone_a, …_b, …_c to zone_z, these tables have the same attributes. We have divided this tables in this way so that any data that is under zone_a would only be on it’s specific table, and the same with the other remaining table. Since per table holds thousands of data [...]
Hi all My question is that i want to make the table which will accept only 500 row. even it could not accept 501th row. i mean to say i can’t accept at the time of insertion not on fetch time
Value for column or variable SPDESC too long. UPDATE mbmtest01/wbmscur set spdesc = (Select itdsc FROM amflib7/itemasa WHERE itnbr = spptno) WHERE EXISTS (SELECT DISTINCT itdsc FROM amflib7/itemasa WHERE itnbr = spptno) How do I make the field truncate the larger input field. The input field is 30 bytes and the receiving field is 15 [...]
if there is one table with a id and names as cloumns and another table with the id and dates, if want to have a id, name and the latest dates as an id can have mulitple dates what would be the query
If I truncate a table without the backup of it, how do I retrieve the table data?
Hi I am creating a database. In my legacy system I had what we called a tables system where coded data could be expanded into different values eg 0 = No 1 = Yes I tried to create this in SQL by having a properties table and then relating the other tables to the [...]
When a table is created with SQL, several fields in the system cross-reference file QADBIFLD gets content (headings, defults a.o). I noticed that the QADBIFLD table contains a column named DBIREM (length 2000 bytes..). I also noticed that the old S36 IDDU actually put some documentation into this column. Now my question: How can text-documenation [...]
Hello programmers. After doing much research I am unable to resolve how or where to custom format each field of my SQL table output into my text file. Can someone help me with enhancing the below vb script? I need to reformat certain values. Do I do the formatting in the Dim section or in [...]
One table named as employee has 3 columns (name, salary, department). I need to retrieve the employees whose salary is greater than average salary of their department. that is name salary department iioo 10000 Technical aaaa 15000 HR pppp 17000 HR wwww 20000 Technical I need to get employee details whose salary is greater than [...]
Can somebody please explain how to fetch synonym names with the SQLTables function in ODBC API. I currently use the DSN created with SQL Native Client 10 and SQL Server 2005. My code is as follows:</p><p>ret = SQLTables(stmt, NULL, 0, NULL, 0, NULL, 0, <br>SQLCHAR*)”‘TABLE’,'VIEW’,'ALIAS’,'SYNONYM’”, SQL_NTS);</p><p>I am getting back a table and views in a result set — [...]
I have two tables – [em]Users[/em] and [em]UserAddress[/em] — with 30 million records in each.
I have 2 tables one with all my products and their accociated details and another with comments on the products. Product table 1 prodID, title, description, price Comments table 2 commID, prodID, comment I would like to export this to a single XML file, thus an XML element for each product from table 1 with [...]





