Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recent content by dolodolo

  1. dolodolo

    phpmyadmin

    It's not my website - thanks anyway. I'll just execute code.
  2. dolodolo

    phpmyadmin

    Yes, I should create a foreign key but I don't see anywhere to do that on phpmyadmin.
  3. dolodolo

    phpmyadmin

    Hi there, I'm creating a very simple database in phpmyadmin. How do I assign a possible value list to a field in a table? The PV list is an indexed field in a different table. I can't figure out how to do it in phpmyadmin. Thanks for your help. Dolores
  4. dolodolo

    carriage return in a string function

    Thanks guys - that works!
  5. dolodolo

    carriage return in a string function

    Hi, I'm trying to insert a carriage return into the following string function but it still returns all the records on the same line: SELECT @str = COALESCE(@str + char(13),'') + '$' + CAST ( t2.stotalAmount AS VARCHAR) + ' for ' + CAST( rtrim(t2.snotes) AS...
  6. dolodolo

    UNION ALL statement needs to group data results

    Hi, I'd like to combine the results from this UNION ALL: select pr.hmy, count(pm.hmy) from pmuserex pm inner join property pr on pr.hmy = pm.hproperty inner join person p on p.hmy = pm.hobjpointer inner join room r on r.hmyperson = pm.hobjpointer where pr.hmy = 510 group by pr.hmy UNION ALL...
  7. dolodolo

    How to create a stored procedure

    Hi, I need help with conventions on turning a script into a stored procedure. here's the script: /* Version 1.0 DESCRIPTION Create Temporary Tables for Updating Minimum and Maximum Rent on Floorplan table Created by d.meehan 4/23/2010 */ if exists (select * from dbo.sysobjects...
  8. dolodolo

    Delete statement with condition from joined table

    Hi Guys, I need help with the following statement. I am trying to delete records in one table (unitbut_amenity) based on a value in a joined table (unit): delete from unitbut_amenity inner join (select u.hproperty hproperty, u.hmy hunit from unit u) as main on main.hunit =...
  9. dolodolo

    subquery in SQL select statement

    I’m trying to run the following script and get an error (see below): select ach.hperson, ach.sname, ach.sacct, ach.bportal, ach.hroommate FROM (select hperson, count(hmy), brecur from achdata where brecur <> 0 group by hperson, brecur having count(hmy) > 1) main inner join achdata ach on...
  10. dolodolo

    SET ANSI_DEFAULTS ON in Report Script

    Hi, How can I set ANSI_DEFAULTs to ON in a report script in SQL Server. Here is the select statement: SELECT t.sfirstname, t.slastname, ts.status, pm.susercode, pm.susertype, pr.scode FROM pmuserex pm INNER JOIN [jqnnbla_sandbox_2k5].jqnnbla_sandbox_2k5.dbo.tenant t on t.hmyperson =...

Part and Inventory Search

Back
Top