473,516 Members | 2,910 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Query Result Coma Delimited

2 New Member
Hi,
*Sample Data
*Company
=============
CoId CoName
1 Company1
2 Company2
3 Company3
**
Employee
============
EmpId EmpName
1 Employee1
2 Employee2
3 Employee3
4 Employee4
5 Employee5
**
Manager
=============
ManId Company Employee
1 1 1
2 1 2
3 1 3
4 2 4
5 2 5
**
I want Following Result
*
Company Manager

Company1 Employee1,Emplyee2,Employee3
Company2 Employee4,Employee5
*
I do not want to write a function and use any cursore for that is there any way that i could generate this result in a single query using joins and some syetem defined function? :confused:

*Vijay Soni
a2z Infotech Pvt. Ltd.
308, ACME Plaza, M.V. Road
Andheri (E), Mumbai-59
Telefax:(022) 550 21759/60
<mailto:vijay@a2zinc.net>
<http://www.a2zinc.net/>
"Web-based software for managing and marketing events"
*
on
Aug 11 '05 #1
0 2197

Sign in to post your reply or Sign up for a free account.

Similar topics

9
3112
by: netpurpose | last post by:
I need to extract data from this table to find the lowest prices of each product as of today. The product will be listed/grouped by the name only, discarding the product code - I use SUBSTRING(ProductName, 1, CHARINDEX('(', ProductName)-2). I can get this result, but I had to use several views (totally inefficient). I think this can be...
2
1190
by: su | last post by:
I am having trouble creating a query that ouputs each of the children associated with a parent. Here is a simplification of my tables: tblParent Parent_ID A B C tblChild
6
4817
by: jjturon | last post by:
Can anyone help me?? I am trying to pass a Select Query variable to a table using Dlookup and return the value to same select query but to another field. Ex. SalesManID SalesManName AT Alan Time
1
1783
by: vssp | last post by:
Hi friends Thanks for your repaly for all my question.. I need one update query. I have selected the datas are insert with coma ",". Query SELECT city FROM `locations` WHERE city REGEXP ','
3
36046
by: azzi2000 | last post by:
This should be rather simple. I have a query using different link tables and 2 parameters. The query works perfect. However I need to export or save the result in an Access table in order to export it to an ascii file delimited. (Quote delimited with comma) - I tried to export to an ascii but I am getting: Too few parameters. It would be...
0
2433
by: Chuck36963 | last post by:
Hi all, I've been working on a listing problem and I can't figure out how to work it out. I have looked far and wide on the web to find answers, but I'd like other peoples input on my project in the whole. I really need MySQL wizz to give me a hand (and maybe refer me to books to get me to the wizz level myself). First off, english is a...
5
7261
by: Frank Jovi | last post by:
I am working on a website with ASP.NET 2.0 I started with a SQL database .mdf. After further discussions with my client, we decided to switch to an Access database. I created a Select query that has a parameter that is a comma delimited string brought in through a paramater in to the <selectcommand=...> The query worked perfectly before,...
3
1756
by: Frank11 | last post by:
Hi, I'm rather new to writing queries, so please forgive me if this is a really simple thing to do. I need to create a query that finds out which rows in the DB have ANY of the values that are in a given list. Only one column in each row of the DB has their values stored in a list. Example: Passed list = 2,5,10,6 ColumX data in...
3
18888
by: AccessHunter | last post by:
Hi, I need to automate a process that would export a query to a text file, tab delimited. I know how to do it manually. Is there a way to automate the same? Please treat this as urgent. Thanks for the help.
0
7276
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
1
7142
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
7548
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
5714
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5110
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
3267
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
1624
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
825
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
488
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.