SQL help needed please

Hi - using asp/vbscript/access
I struggle with a small SQL issue and hope that someone can
assist me;
I have one db table, lets call it "test".
Coloumns are ID, SubID, Name
ID holds the uniqe ID and headline for each record ( Name).
SubID holds the content linked to the corresponding ID.
Something like this;
ID1 - Shoe sizes
ID2 / SubID 1 - 40
ID3/ SubID 1 - 41
ID4/SubID 1 - 42
ID5 - Shoe Colors
ID6/SubID 5 - Red .......and so on.
I now try to display all the ID and SubID records in the same
order as the input;
SELECT *
FROM test
WHERE ID = SubID
This gives no result. Any idea how to display this?
Kind regards,
Bjørn.

I'm trying to figure out how you made that table. If ID is an
autonumber,
how is the data under one record something like a title and
under another
one, a number? That isn't possible.
What exactly are you trying to accomplish?
Nancy Gill
Adobe Community Expert
BLOG:
http://www.dmxwishes.com/blog.asp
Author: Dreamweaver 8 e-book for the DMX Zone
Co-Author: Dreamweaver MX: Instant Troubleshooter (August,
2003)
Technical Editor: DMX 2004: The Complete Reference, DMX 2004:
A Beginner's
Guide, Mastering Macromedia Contribute
Technical Reviewer: Dynamic Dreamweaver MX/DMX: Advanced PHP
Web Development
"btn" <[email protected]> wrote in message
news:e9t94r$lcn$[email protected]..
> Hi - using asp/vbscript/access
>
> I struggle with a small SQL issue and hope that someone
can assist me;
>
> I have one db table, lets call it "test".
> Coloumns are ID, SubID, Name
> ID holds the uniqe ID and headline for each record (
Name).
> SubID holds the content linked to the corresponding ID.
>
> Something like this;
>
> ID1 - Shoe sizes
> ID2 / SubID 1 - 40
> ID3/ SubID 1 - 41
> ID4/SubID 1 - 42
> ID5 - Shoe Colors
> ID6/SubID 5 - Red .......and so on.
>
> I now try to display all the ID and SubID records in the
same order as the
> input;
>
> SELECT *
> FROM test
> WHERE ID = SubID
>
> This gives no result. Any idea how to display this?
>
> Kind regards,
>
> Bj?rn.
>

Similar Messages

  • Help needed please.. how do I remove my credit card from itunes? just discovered over $450 of charges when I looked at my email... Kids had no clue they were using our money and not their gift cards

    Help needed please.... I just discovered over $450 charges to my credit card from Itunes. The kids had no idea they were using our credit card and not their itunes gift cards and 4 year old just clicks on anything! I didnt save my credit card details so am a bit miffed at this... I cant find anywhere in itunes to remove it. Edit.. but not remove. Editing does not remove it.. HELP

    To Contact iTunes Customer Service and request assistance
    Use this Link  >  Apple  Support  iTunes Store  Contact
    Accepted forms of payment  >  http://support.apple.com/kb/HT5552
    Changing Account Information  >  http://support.apple.com/kb/HT1918

  • Help needed please, with Iphone stuck with apple picture and progress bar after software update attempted

    Help needed please, everytime I try to update the software version on my iphone it comes up with a message saying it could not be completed and is now frozen with the apple picture and progress bar on it. Do I unplug it and hope the macbook pro sees it again, I also stupidly did not back up before starting the download which I realise I will have to go back to the previous back up. This keeps happening, everytime I do this type of update, I'm starting to think I should just give up on updating my software on the Iphone. I thought it was happening because I was using a window based computer to do the updates, this time I used my Macbook Pro. Please somebody help

    ljm17 wrote:
    ...This keeps happening, everytime I do this type of update, I...
    Then you should know what you need to do... If you don't remember...
    See Here  >  http://support.apple.com/kb/HT1808

  • I recently had to restore my Iphone 4s and ever since I cannot double click the home button whilst the phone is locked and change my music. The controls come up and I can adjust the volume but I cannot change the songs. Help needed please!!

    I recently had to restore my Iphone 4s and ever since I cannot double click the home button whilst the phone is locked and change my music. The controls come up and I can adjust the volume but I cannot change the songs. Help needed please!!

    Have you guys been able to activate your iphone yet? I bought an iphone 4s from eBay and it worked fine, but the previous user had left some data on it, so last night I used the "erased all content and settings" to restore it to factory setting so I can start fresh and restore my backup. But now I'm stuck at the activation screen (I get the same "the activation server is temporarily unavailable")  and can't get it to activate, even if I use my old deactivated AT&T sim card (I'm on straighttalk now).
    I might try activating it with an active AT&T sim card from my fiancee's phone when she gets home, so I'll let you know how that works outs.
    If it's true that the server is down; anyone know when it will be back up again? Thanks in advance.
    iPhone 4s iOS 5.1.1 (9B206)
    Carrier AT&T 12.0
    Modem Firmware 2.0.12

  • New Hard drive, can't access certain aspects. Help needed please

    Hi everyone.
    I have an HP Pavilion dv6-6052ea laptop.
    I've been having problems with the hard drive so got a new one installed.
    My main issues are since getting it back, I can't access any of the original HP installations etc (I've downloaded all the drivers I know about through HP).
    The 2 main things I'm missing are 2 things that came with the laptop.
    1: Beats Audio sound system 
    2: Video Graphics: AMD Radeon HD 6490M (1 GB DDR5)
    and I have no idea how to get them back. Can anyone help. Do I need to install specific drivers? I can't find any trace that they exist on my laptop now apart from the stickers on the laptop! Any help is greatly appreciated. 
    I never had any CD back ups for the laptop. I do have the old HP back up etc saved on a USB but I don't know enough about the folders and files to know what I need to look for. (I still have the old hardrive.)
    Again, any help is massively appreciated. Thank you!
    Tony 

    If you used your HP Recovery Media, all factory install drivers and software would have been installed. If you didn't create your HP Recovery Media when you first setup your computer, please contact official HP support in your region / country, via the HP Worldwide Support Portal, to see if HP Recovery Media is available for your computer.
    If a generic Windows 7 installation disc was used, you will need to install all HP specific driver for your computer. Please try IDT High-Definition (HD) Audio Driver, Intel High-Definition (HD) Graphics Driver, and AMD High-Definition Graphics Driver to resolve your missing drivers issues. Windows 7 64-bit driver for your computer can be found on the HP Pavilion dv6-6052ea Entertainment Notebook PC Drivers page.
    If you have any further questions, please don't hesitate to ask.
    Please click the White KUDOS "Thumbs Up" to show your appreciation
    Frank
    {------------ Please click the "White Kudos" Thumbs Up to say THANKS for helping.
    Please click the "Accept As Solution" on my post, if my assistance has solved your issue. ------------V
    This is a user supported forum. I am a volunteer and I don't work for HP.
    HP 15t-j100 (on loan from HP)
    HP 13 Split x2 (on loan from HP)
    HP Slate8 Pro (on loan from HP)
    HP a1632x - Windows 7, 4GB RAM, AMD Radeon HD 6450
    HP p6130y - Windows 7, 8GB RAM, AMD Radeon HD 6450
    HP p6320y - Windows 7, 8GB RAM, NVIDIA GT 240
    HP p7-1026 - Windows 7, 6GB RAM, AMD Radeon HD 6450
    HP p6787c - Windows 7, 8GB RAM, NVIDIA GT 240

  • HELP NEEDED PLEASE

    Hi everyone
    Programming help needed here. Any advice would be greatly appreciated!!!
    I have been assigned some work for a program called Processing 1.0 availale at http://processing.org/download
    I was give the 9 individual programs I needed to make however they were converted to Java files from .pde files. The program is based on Java but only runs .pde files and NOTHING else!
    I decompiled the files and got the source code, but it is a slight variation of the original someone made in processing, and needs some tidying to get it to run.
    I think the programs are very simple for a programmer, although I AM NOT.
    CODE is BELOW
    // Decompiled by DJ v3.10.10.93 Copyright 2007 Atanas Neshkov Date: 02/05/2009 13:15:00
    // Home Page: http://members.fortunecity.com/neshkov/dj.html http://www.neshkov.com/dj.html - Check often for new version!
    // Decompiler options: packimports(3)
    // Source File Name: Assign2_1.java
    import processing.core.PApplet;
    public class Assign2_1 extends PApplet
    public Assign2_1()
    SquareSide = 20;
    Rank = Nums.length;
    Side = SquareSide * Rank;
    Green = color(0, 255, 0);
    Yellow = color(255, 255, 0);
    BG = Yellow;
    public void setup()
    size(Side, Side);
    background(BG);
    fill(Green);
    for(int i = 0; i < Rank; i++)
    rect(i * SquareSide, 0.0F, SquareSide, SquareSide * Nums);
    public static void main(String args[])
    PApplet.main(new String[] {
    "--bgcolor=#ece9d8", "Assign2_1"
    int Nums[] = {
    6, 14, 8, 9, 2, 3, 4, 2, 8, 3,
    9, 2, 0, 5
    int SquareSide;
    int Rank;
    int Side;
    int Green;
    int Yellow;
    int BG;
    Edited by: chevy1 on May 2, 2009 7:32 AM

    HELP NEEDED PLEASEShouting is a good way ensure you don't get help. Also you should give a meaningful subject.
    Any advice would be greatly appreciated!!!I suggest you ask a question after providing enough information to be able to answer it.
    Also use CODE tags when posting code as it make the code more readable.
    We are more likely to help people who are trying to learn Java rather than someone who might be looking for an easy way out of doing an assignment.

  • ITunes corrupt file message - urgent help needed please

    I have an iPod video 30GB, i downloded the latest iTunes & Quicktime version, and updated my iPod also to the latest update. When i connect my iPod and start downloading music from the library in iTunes, the iPod keeps on disconnecting and restarting by itself, and i get a message that the file iTunes.exe is corrupt. I tried Apple support and did all what they said by downloading the latest updates and versions, and also did the Chkdsk utility on Windows, but still it did not work, the iPod keep on restarting and i cannot download anything on it, i had it now for a week and did not use it at all because of this problem, can somebody with a technical background help me please, i use Windows XP.

    I have an iPod video 30GB, i downloded the latest iTunes & Quicktime version, and updated my iPod also to the latest update. When i connect my iPod and start downloading music from the library in iTunes, the iPod keeps on disconnecting and restarting by itself, and i get a message that the file iTunes.exe is corrupt. I tried Apple support and did all what they said by downloading the latest updates and versions, and also did the Chkdsk utility on Windows, but still it did not work, the iPod keep on restarting and i cannot download anything on it, i had it now for a week and did not use it at all because of this problem, can somebody with a technical background help me please, i use Windows XP.

  • MP3 burning help needed please

    Hi,
    I'm hoping someone can help me please.
    I'm wanting to burn a mp3 cd but with the songs in separate folders so that when i play them in my car i can flick between the albums instead of having to go through all the singles one after another.
    Does anyone know of a good mp3 burner that can do this, and where to get it from too.
    All and any help in this matter is greatly appreciated
    Cheers
    Paul

    You want them in separate Album folders?
    Put the songs into the playlist.
    Sort the playlist by Album then burn it as MP3* disc.
    This will put the songs into Album folders.
    Likewise, if you sort by Artist, songs will be put into Artist/Album/ folders.
    * Note that only MP3 files will be burned to the disc. If the files are not already MP3 format, they will be skipped.
    If you burn it as a DataCD, it wil work the same except it will copy the files regardless of format. I do this as my CD player will work with both AAC & MP3 formats.

  • WLC Logs!!! Quick Help needed please!

    Hello,
       My client want to check who owned a certain IP address on the WLC and from which AP he was associated. I looked at the system logs in the GUI but couldn't get beyond 6 hours. Is there a place I can download last day logs from CLI/GUI? Or Can I login via SSH and extract the logs via CLI?
    Please this is vital and I appreciate your help,
    Regards,

    Please note that the customer is using Pass-Through Web Authentication for the Guest WLAN.
    Thanks,

  • Beginner Factory Pattern help needed please

    hi people,
    Can someone please explain to me in laymans terms what the use of the Factory pattern is. I went to http://www.research.umbc.edu/~tarr/dp/lectures/Factory.pdf
    and it did nit help me too much.
    I'd really appreciate it if someone could give me an abstract example of when the Factory pattern would be useful. The reason I ask is because I am researching into JDO and have come across PersistenceManagerFactory and think I would underdstand this better if I understand Factory's.
    Many thanks.

    Is the reason for the ConnectionHelper to allow us to use that as the return type in the getHelper() method, thus allowing us to have either the OracleConnectionHelper or DB2ConnectionHelper?
    Yes. You want to achieve polymorphism. You are interested in the connect() method, not necessarily what database is used (not the best example in the world, normally you would care as different vendors have slightly different SQL syntax, but assume you were using no triggers, procedures or non-ANSI SQL).
    So, are you basically saying that a Factory is a class that can be used to decide which of the two databases we are going to connect to?
    Depends. In this instance, you name the database you want and the factory is responsible for returning the proper class. In other cases, you might have developed a program that works across databases and only uses one at a time. In this case, you would probably read in a setting at application startup, and the factory would always return the same object type.
    If there is a PersistentManagerFactory, does it mean this would be used to decide what PersistentDataStore we are going to use (i.e. flat file, database, serialised object etc)?
    Again, it depends. You can make your factories 'smart' by deciding where to serialize a given object (say, every domain model object has a method save() and your DAO uses the factory to get a connection to do its work). In other cases, you have a 'bare-bones' factory that simply returns the requested object type. Why go through all that effort? Well, one advantage is that I can put the factory, interface and any implementations in the same package. The only ones that (normally) would need to be public would be the interface and the factory. You can hide the implementation details using the security features of the language.
    Also, why is OracleConnectionHelper a final class?[i]
    In general, I make all variables, method signature parameters and classes final. Once I need to sub-class or re-assign a variable value, I remove the final clause. I can't count the number of times the compiler caught an error (rather than at runtime) because of the additional 'safety' declaring everything final gives you. Only make variables and classes (and method signature variables) non-final when you need to. IMHO, of course.
    - Saish

  • Urgent help needed, please help me

    Hi,
    I am developing a web site using Java Servlets. The site requires to send XML as POST to an HTTPS server and get the response.
    Development environment:
    Laptop running Windows XP with jdk1.3.1, j2sdkee1.3 and Tomcat 4.1.
    Since I need to use https request from the servlet, I am using the following code;
    URL url = new URL("https://www.somesite.com");
    HttpsURLConnection connection = (HttpsURLConnection) url.openConnection();
    To use the above code I downloaded the jsse1.0.3_03 package from the sun website and added the three jar files to the appropriate location. Also edited the java.security file.
    The program compiles and when deployed to the web server, it works great.
    Now the problem;
    I need to deploy the web site in a server that is connected to the internet. This server is running Windows 2000 Server. It has the same jdk1.3.1, j2sdkee1.3 and Tomcat 4.1. Also I added the three jar files from jsse1.0.3_03. I also updated the classpath in the environment variable accordingly.
    Everything is pretty much similar to the Laptop that I use to develop the site except that the OS is Windows 2000 Server.
    But when I deployed the class files to the web server and tested the site, the servlet gave the following error:
    "unknown protocol: https"
    What could be wrong? I really need to fix this issue as soon as possible and any input from you will be highly appreciated.
    Thanks in advance,
    Rajesh

    Hi,
    I used java class as beans and added to JSP page as follows (the code is not complete, I am just giving the parts that are relevant);
    login.java: Implementation of login to access the database      
    *through JDBC. Uses MySQL.                              
    Last Modified: 03.22.03                    
    package user;
    import java.sql.*;
    import java.util.*;
    public class login
         private static Statement statement;
         private static Connection database;
         private static String jdbcDriver = "org.gjt.mm.mysql.Driver";
         private static String source = "jdbc:mysql://127.0.0.1/user";
         private static String username = "user";
         private static String password = "passwordforuser";
         Constructor for initializing the connection to the database                              
         public login()
              try
                   Class.forName(jdbcDriver);
                   database = DriverManager.getConnection(source, username, password);
                   statement = database.createStatement();
              catch (Exception e)
                   System.out.println("Error (From loginDatabase Constructor): " + e.getMessage());
         Used to check the users      
         public String checkUser(String userName, String passwd) throws Exception
              try
                   ResultSet names = statement.executeQuery("SELECT username, passwd FROM users");
                   while (names.next())
                   return "success";
                   return "wronguser";
              catch (Exception e)
                   throw e;
    <!--*********************************************************************************
    login.jsp: Server page to process the login request. Uses login.class to     
    *add / login users.                                        
    Last Modified: 03.23.03                         
    **********************************************************************************-->
    <%@ page import="user.login" %>
    <jsp:useBean id="login" scope="page" class="user.login" />
    <jsp:setProperty name="login" property="*" />
    <html>
    <head>
    <title>Login</title>
    </head>
    <body bgcolor="#3366FF" link="#000000" vlink="#000000" alink="#000000">
    <table border="0" width="100%" cellspacing="0" cellpadding="0">
    <tr>
    <% //Login the user and display the status
    String loginResult = login.checkUser(request.getParameter("username"), request.getParameter("password"));
    if (loginResult.equalsIgnoreCase("success"))
    %>
              <h1 align="center">You are successfully logged to the Server!</h1>
    <%
    %>
    </tr>
    </table>
    </body>
    </html>
    Hope that helps...
    Good luck!
    Rajesh

  • SQL HELP NEEDED IN QUERY FOR COUNT

    I Have this Query
    SUM (CASE WHEN b.VET_OTHR_ELIG_CDE IN ('02', '03', '04') THEN 1 END) AS VET_YES,
    SUM (CASE WHEN b.VET_OTHR_ELIG_CDE = '01' THEN 1 END) VET_NO, COUNT (E.ACTV_CDE) AS CNT_ACTV_CDE
    Now i need to Add two more columns from the same Query Showing the count of VET_YES and VET_NO i.e count of TOTAL Veterans And TOTAL Non Veterans
    those two columns i will be using as summary columns in my report.The bolded columns are those which i need to show the total column .anyone please help in this issue ..
    ACTV_DESC ACTV_CDE VET_YES VET_NO CNT_ACTV_CDE
    INACT DUE 13993 2 1 3
    NOW I NEED TO MAKE IT LIKE THIS
    ACTV_DESC ACTV_CDE VET_YES VET_NO CNT_VET CNT_NONVET CNT_ACTV_CDE (This is the total count)
    INACT DUE 13993 2 1 2 1 3
    Thanks in Advance,
    Dev Kishore.T
    Message was edited by:
    Dev Kishore
    Message was edited by:
    Dev Kishore

    Check this link.
    http://download.oracle.com/docs/cd/B19306_01/server.102/b14223/aggreg.htm#sthref1612
    Regards
    Raj

  • Restore help needed please.

    I need help. I got a new iPhone today and I went to iTunes, pressed restore, because I didn't know what else to do.
    And now because it was logged in under my boyfriends apple ID my iPhone is my boyfriends iPhone too.
    How do I turn it back to mine!? I need urgent help please!

    Go to Settings > General > Reset > Erase All Contents and Settings. Now this time, select Set Up as New iPhone rather than Restore from Backup.

  • Error in database reading ! help needed please.

    My project involves monitoring of ovens.
    The temperature from the oven are obtained using advantech ADAM module.
    Each material enters the oven and an alert is given to take it out after the desired time inside the oven.
    When i execute this program. an error pops up exactly 1 our after the start of the program.
    Kindly help me.
    I have attached the source code including the DB files and the error screen shot.
    username: 123456
    pass: 123456
    Thank you ina advance.
    Please help figure out the error.
    Regards
    Grugh Mike
    Success is Everything !!
    Solved!
    Go to Solution.
    Attachments:
    New Microsoft Word Document (2).doc ‏151 KB
    source.zip ‏4529 KB

    The biggest problem in your code is architectural. You need to learn about a few things like event-driven programming. As but one example you have an administrative operations VI that would be much smaller and much more efficient if it were built around an event structure and not multiple case statements. Your main application uses sequence structures - which are never necessary. As I recall, the last sequence structure I used in deliverable code was in the spring of '88.
    You also are not handling any of errors - which I suspect might be the source of your problem. It's possible that due to an error (which is going unreported) that a connection is being left open when you think it is being closed. But at this point that is just a guess.
    Fix the structural problems and you'll then be able to troubleshoot your DB problem. Shoot, in the process of fixing the structural issues, you may fix the DB!
    Mike...
    Certified Professional Instructor
    Certified LabVIEW Architect
    LabVIEW Champion
    "... after all, He's not a tame lion..."
    Be thinking ahead and mark your dance card for NI Week 2015 now: TS 6139 - Object Oriented First Steps

  • IReader installed but wont open Urgent help needed please!

    I have installed Acrobat Reader X.
    When i try to open files I get a problem saying Microsoft and Adobe have encountered a problem and need to close.
    I get an option to Debug, Send error report or Dont send.
    The information which comes up when I look for more information is the following::
    error signature
    Appname. Acrord32.exe. Appver 10.0.1.434 Modname acrord32.dll
    Modver 10.0.1.434  offset 001869666
    It was previously working then the next time I came to use it I got this.
    Desparately need help

    1. camera loading - have you tried updating or reinstalling your firmware?
    2. keyboard - define strange
    3. slow - how much is phone memory and what apps are running in background (see taskmanager, hold menu key until it shows)? turn off theme animations. it helps.
    4.  handwriting - have you set the handwriting recognition to recognize your particular penmanship? Go to menu>settings>phone>touch input. Set writing speed to very fast, calibrate your screen and take handwriting training so the phone will recognize your handwriting.
    5. qwerty - what things? how so? have you set it to qwerty?
    6. cannot scroll in file manager - its not a problem. Thats normal for the OS. Use Nokia Photobrowser or the Gallery for viewing pictures. File manager is for managing files, not viewing them.
    7.  Motion sensors - read #3
    8. Phone feels hot - how hot? Batteries heat up when charged. Its normal. However it depends on how hot exactly.
    9. Depends maybe on how long the video is. My 5800 feels hot when watching an entire movie. Also this would be reflected on #3 as well, as the phone may be working overtime.
    10.  Music when unplug headset - Its normal for almost all Nokia phones (heck even some other brands this is normal), try to use an alternative player if you like
    11. Back cover -  Its the design
    12. Yotube - use youtube app
    13. Use Nokia Photo Browser download from ovi store. It shows pics only and looks real cool. Anyway, you can put all your videos in the gallery into a virtual folder so that it is separate. Its the way the gallery is designed, to show both pics and video. As you can see, it is written Images and Videos, so they're supposed to be together in there.
    14. Adobe still hasnt caughtup its mobile solutions for its PC solutions. Its their fault not Nokia's or anyone else's.
    15. Depends on extension. Built in office reader only reads .doc, not .docx.
    If you find my post helpful please click the green star on the left under the avatar. Thanks.

Maybe you are looking for

  • How do I create a named destination in InDesign?

    I want to create a hyperlink from an HTML page that will open a PDF file at a specific point. I'm generating the PDF in InDesign CS5. How do I create the named destination (Objective2) so I can do the following? http://preparatorychemistry.com/Bishop

  • Pioneer wireless music reproduction

    hello, i have a pioneer receiver, and before my nokia i had an iphone and an android phone, with both i was able to connect my phone to the receiver via wifi and play music wirelessly in my surround system connected to the receiver, i did it with the

  • Not able to use any character as separator in date

    Hi My application is running under forms 5. The date format for date field is mm/dd/rrrr. System allows me to enter any character as separator ie. 12b12b2007 and converts it to valid date like 12/12/2007. Now we have migrated it to forms 6, but now i

  • Mozila crash reporter

    Hi I installed firefox in my windows 7 when i click the firefox icon the a sudden crash reporter appears every time browser is not opening but i can able to open it in safe mode it's working fine. report id: bp-a184f3d6-2237-41a6-87e8-4064b2140805

  • Disk read error when installing new OS on S10-2

    Hello all. I`ve looked thru this forum and knowledge base, but couldn`t find an answer so I`m appealing to the Lenovo community. I recently purchased a S10-2 netbook in Mexico. Unfortunetely it`s in Spanish and I need English.(I`m writing a computer