Recent IT Questions

1 - 20 of 22
<<PREVIOUS 1|2 NEXT>>

get a anr record from databse by using max (one Field) and orderby (one filed) desc

Hi, I have a table. It can have multiple records for the key value. Ex secid   time       source 1       02:04    a 1      02:04    b 2 3 Now i want only one record of secid for a descending orderby of (source) and for a max time stamp. and later i will join the secid with...

View Answer   |  Oct 20 2009  1:12 PM GMT
Database issues, Oracle Database, JOIN statement
asked by Workingonswingsanddatabase

  5 pts.

Why are naturl JOIN keywords not an option for producing a self-join?

Why are naturl JOIN keywords not an option for producing a self-join?

View Answer   |  Oct 7 2009  2:16 PM GMT
JOIN statement, SQL procedure
asked by Meganlh

  5 pts.

query for join

i have 2 tables unittypes,rules unittypes has unitid and description unitid description A1 description1 A2 description2 A3 description3 rules has id unitid 1 A1,A2 2 A1,A3 i am trying to get it to get a resultset like 1 ...

View Answer   |  Jun 1 2009  12:50 AM GMT
SQL Server Query, SQL Server tables, JOIN statement
asked by Rampradeep

  5 pts.

Multiple Join Update

Hi, my need is to update a table with a join of 2 other tables. The first table (a) has 5 columns (product_id number, ist number, plan number, plan_w number, ist_w number) The second table (b) has 2 columns (prod_group_id number, percent number) The third table (c) has 2 columns (product_id...

View Answer   |  Apr 17 2009  11:47 AM GMT
JOIN statement, SQL queries, UPDATE statement
asked by Keltos

  25 pts.

SQL Server Query Help Needed

I have a table with Inventory transacation records. The table contains both Shipment (outgoing) and Receiving (incoming) transactions. I'm trying to write a report that lists both Sales Orders that result in Shipment records and Purchase Orders that result in Receiving records. If I link the...

View Answer   |  Feb 5 2009  10:39 PM GMT
SQL Server Query, SQL queries, SQL Query
asked by Arlin

  70 pts.

can you help on this query?

I am new to sql and cannot work out the query for this: >>>List the films in which 'Harrison Ford' has appeared <<< movie(id, title, yr, score, votes, director) actor(id, name) casting(movieid, actorid, ord) The whole exercises can be found on http://sqlzoo.net/3.htm thanks in...

View Answer   |  Jan 19 2009  11:49 PM GMT
SQL, SQL Query, JOIN statement
asked by Cateye

  5 pts.

Joining Tables in SQL Server

What is the difference between Outerjoin and Left outerjoin.

View Answer   |  Dec 19 2008  10:23 AM GMT
SQL Server development, JOIN statement, SQL statements
asked by Bijaybehera29

  15 pts.

SQL Table Join when the name of a column in Table1 equals the value of a column in Table2

Does anyone know how to write the SQL to join two DB2 tables when the name of Table1.columnA equals the data values stored in Table2.columnB? In the table structure examples listed below, I'm trying to figure out how to join Table1 and Table2 when the values in Table2.Tag_Name are equal to the...

View Answer   |  Dec 4 2008  8:13 AM GMT
SQL, JOIN statement, Conditional statements
asked by Bchat

  5 pts.

How can I join 3 tables using JOIN keyword

Hi Experts, Pls hlp me with my query How can i join 3 tables using JOIN Keyword inside PL/SQL block in SELECT ... WHERE clause Query 3 Tables namely Reg,ROOTS,ME and the select statement takes both parameter variable and local variable Thanks!!!!!

View Answer   |  Dec 4 2008  6:20 AM GMT
SQL, PL/SQL, SELECT statement
asked by Inprise

  525 pts.

designing indexes

I have a question regarding database design. Lets assume that there is a table with 10 columns. I don't have any single column which I can choose as candidate for Primary key. Though, combination of 5 columns can uniquely identify records. Here, I created an identity column as a PK and added...

View Answer   |  Oct 14 2008  3:31 PM GMT
Database design, JOIN statement, Primary keys
asked by Sqloholic

  25 pts.

RRN and JOIN...

I have two files and I'd like to join and make a group-by on a xycod, in order to count the number of occurrences. This is the question: What happens on the RRN filed when i try to do group by statement? There is one-to-many relation between records and RRNs, so which is the RRN assigned to it?

View Answer   |  Oct 13 2008  1:27 PM GMT
JOIN statement, RRN
asked by Devilva

  15 pts.

LEFT JOIN depending on more conditions

I'm not sure what says the ansi norm about this SELECT * FROM a LEFT JOIN b ON b.mast_id = a.id AND b.flag = 1. Is it possible (by the ansi norm) to use in "ON" condition more then one boolean expression? Like in this case condition compounded by two expressions? Of course, meaning by this that...

View Answer   |  Oct 13 2008  8:01 AM GMT
Database programming, JOIN statement, ANSI norm
asked by Flopy

  5 pts.

Join clause vs. nonequi join

pls help, can using clause is simmilar to non equi join,if yes how is it

View Answer   |  Aug 13 2008  1:49 PM GMT
Oracle developers, JOIN statement, Join logical files
asked by Muktioracle

  50 pts.

Nonequi join and self join as inner join

pls Help, can we call non-equi join and self join as inner join ,if yes pls give some resion

asked by Muktioracle

  50 pts.

joining what is the diffrences between oracle proprietary join and sql 1999 compliant joins

what is the diffrences between oracle proprietary join and sql 1999 compliant joins

asked by Muktioracle

  50 pts.

Simple question about AS/400 query

Maybe for you that will be a stupid question, but I'm taking the first steps and I don't know what exactly I have to do in the "Specify how to join files" screen. If I put more joints in more rows it is how there was an "and" before every new row? I mean, all the rows are conditions that have to be...

View Answer   |  Jul 29 2008  9:18 AM GMT
JOIN statement, AS/400 Query
asked by Fabio

  5 pts.

join tables with nested select count and group by

hi i am having three tables : state, agencydetail, parentdetaills i am running following queries but i am getting wrong result plz help me out where is the problem select state.state,count(ag.agencycode) as registag,count(ff.agencycode) as reportag,count(inp.regno) as...

View Answer   |  Jul 25 2008  6:28 AM GMT
Database programming, JOIN statement, SELECT statement
asked by Bijendersverma

  5 pts.

Using Case Statement Inside SQL Join

Hi, I am trying to convert dynamic sql into static sql due to permission issue, I faced a challange when i am trying to convert this part of code given below -- join to ADDR_DETAIL SET @join_sql = 'inner join ADDR_DETAIL on ADDR_DETAIL.GRP_CONTACT_ID = pm.GRP_CONTACT_ID AND ' IF...

View Answer   |  Mar 13 2008  11:08 AM GMT
SQL, T-SQL, JOIN statement
asked by Bmdayal

  5 pts.

LEFT JOIN vs. LEFT OUTER JOIN

I've been googling for 2 hours trying to find if there is a difference between LEFT JOIN and LEFT OUTER JOIN, and of course I didn't find anything. Is there a difference? Is the word 'outer' optional, since a left join is an outer join by default? If this is the case, I don't understand the usage...

View Answer   |  Feb 27 2008  9:51 PM GMT
Oracle, Oracle development, JOIN statement
asked by OracleATE

  190 pts.

SQL statement using RRN(file) on join pulling only Max(date) records from second file in iSeries

I am using WebSmart with the I-series data base files. I am joining two data base files receiving the RRN so that I can use the fetch rrn and the fextnext to display one screen at a time in my WebSmart program. I have used this method many times except this time I have a one to many relationship...

View Answer   |  Feb 15 2008  7:00 PM GMT
iSeries, SQL, JOIN statement
asked by Isjld

  35 pts.

1 - 20 of 22
<<PREVIOUS 1|2 NEXT>>