Jump to content


  • Content Count

  • Joined

  • Last visited

Community Reputation

0 Neutral

About yrstruly

  • Rank

Profile Information

  • Location
  • Interests
    php sql java seo
  1. yrstruly

    Stored Procedure

    I have a table: Named HighScores "INSERT HighScores VALUES ('Bob', 2500, '2 Jan 2013 13:13'), ('Jon', 1500, '2 Jan 2013 13:15'), ('Amy', 3500, '2 Jan 2013 13:18')" I want to create a stored procedure that would: The score must show the TOP 5 or so people. Show your position on the high score board Show the person in front and below you on the high score board. If the scores are tied, the person who got it the most recent is shown higher. Can anybody assist me please?
  2. Im am trying to do this SQL code; CREATE DATABASE AdventureWorks2012 ON (FILENAME = '{drive}:\ {file path}\AdventureWorks2012_Data.mdf') I am getting the following error when i run it: Msg 1036, Level 16, State 2, Line 1 File option NAME is required in this CREATE/ALTER DATABASE statement. My file location is: '{c}:/AAPOLLIS-M/Users/aapollis/Downloads/AdventureWorks2012_Data.mdf') What am i doing wrong? Running on SQL Server 2014(free or trial version).
  3. yrstruly


    Hi Any of you on here Teradata 14 Certified? Im trying to get certified. Have all the prescribed study material and also purchased the app. Failed the exam twice as its very difficult to pass and also including questions which are not in the study metrial, but are in the exam. Anybody point me in the right direction,tips etc?
  4. Have tried the phpadmin, how do i import @Q3? Pls provide me with examples or links also API @Q4?
  5. Repeat schedule
  6. Pls assist with last question of task?
  7. Pls see my last Questions and correct me if that link are suitable to search for answers on single query and index?
  8. will this www.w3schools.com/sql/sql_create_index.asp be sufficient to apply index and single query statement, also point 3 i dont understand or know where to search for?
  9. This for a different non academic assigment, text book explains differntly.
  10. Have no clue how to even start this...
  11. I dont know how to design the tables and combine as it is required?
  12. Does Anybody have a SQL code that does the following ones of or is it done in parts?1. DB Schema Design - Design a basic database to store the following information + A fleet of Vehicles - Include details such as mileage, vin numbers etc + A pool of drivers - Include relevant documentation, e.g. Drivesr license, ID Book + A group of routes - Marking out GPS coords for directions etc. is not necessary, just include a start & end address as well as any other info you believe to be pertinent + A drivers schedule, tying the above 3 tables together
  13. Does Anybody knows how to do the following,API's and Indexes etc?CREATE TABLE ¿tUSER¿ ( ¿id¿ bigint(20) NOT NULL AUTO§INCREMENT, ¿id§number¿ varchar(20) NOT NULL, ¿first§names¿ varchar(100) NOT NULL, ¿last§name¿ varchar(100) NOT NULL PRIMARY KEY (¿id¿), <<INDEXES>>)CREATE TABLE ¿tPROFILE¿ ( ¿id¿ bigint(20) NOT NULL AUTO§INCREMENT, ¿tUSER§id¿ bigint(20) DEFAULT NULL, ¿tTYPES§id¿ bigint(20) DEFAULT NULL, ¿value¿ varchar(100) NOT NULL, PRIMARY KEY (¿id¿), <<INDEXES>>)CREATE TABLE ¿tTYPES¿ ( ¿id¿ bigint(20) NOT NULL AUTO§INCREMENT, ¿type¿ varchar(100) NOT NULL
  14. Hi Im having trouble creating a database via php and selecting it.Can anybody help me? <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"><head> <meta http-equiv="content-type" content="text/html; charset=utf-8" /> <title>Create the Database</title></head><body><?php // Script 12.3 - create_db.php/* This script connects to the MySQL server. It also creates and selects the database. */$connection = mysql_conn
  15. I have included all of the codes and password in the previous posting.
  • Create New...