I currently have a database that contains a Customer and File tables. My first question is how do I get the extension of the file (i.e last three letters of the filename). In the File table I have an entity named FileName that contains the filename. My second question is how do I get at least one of the file types the customer has to show up. So for example say the customer has 5 .exe files and 1 .img file. How would I state the query so that it gives me only 1 .exe and 1 .img, so bascally if it finds two or more file types that are the same it doesn't display all of them but just one.<br><br>Hope I was clear, thankful for any help.<br>