Forum: MS SQL 12 Days Ago |
| Replies: 8 Views: 427 oh im sorry i think i misunderstood the point. When you said this "the second highest bid that is not the same user " the same user means the person who is actually log in the system? |
Forum: MS SQL 12 Days Ago |
| Replies: 6 Views: 559 |
Forum: MS SQL 13 Days Ago |
| Replies: 8 Views: 427 try this
SELECT TOP 1 idCustomerBid, idProduct, bidAmount, bidDate
FROM bidHistory
WHERE (idProduct = 272) AND (idCustomerBid <> 2) AND (idCustomerBid NOT IN
... |
Forum: MS SQL 14 Days Ago |
| Replies: 6 Views: 559 well that is true @table does not have a structure to handle the insert. I guess you are using temporary tables which you can reference like this
create table #TABLE(
employeeid varchar(10),... |
Forum: MS SQL 17 Days Ago |
| Replies: 6 Views: 559 hi carobee try this
DECLARE @SqlQuery NVARCHAR(4000);
set @SqlQuery='You query here'
INSERT into @table
exec(@SqlQuery)
regards |
Forum: MS SQL Aug 17th, 2009 |
| Replies: 3 Views: 465 Why dont you include the parameters in the select statement something like
string st = "select user, pass from loggin where user = '"+txtbox1.text+"' and pass = '"+txtbox2.text+"'";
//Then pass... |
Forum: MS SQL Jun 25th, 2009 |
| Replies: 4 Views: 536 |
Forum: MS SQL Jun 25th, 2009 |
| Replies: 4 Views: 536 Hi, i once have that problem and i use this function and it work for me.
http://geekswithblogs.net/AngelEyes/archive/2007/04/12/111504.aspx |
Forum: MS SQL May 25th, 2009 |
| Replies: 2 Views: 490 Hi,
SELECT A.AID, B.BID, A.ANAME, B.BDESC FROM A INNER JOIN B ON A.AID = B.AID
Hope that help regards. |
Forum: MS SQL May 7th, 2009 |
| Replies: 2 Views: 639 try this
select ( select f.cycle as col1
from final as f
for xml raw, elements, type).query('for $col1 in (row/col1) return concat($col1, " ")')
I did not test this.
Regards. |