473,378 Members | 1,699 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

Returning "binary flags" with found record(s)

Hi,

I am using the 'binary flag' principle for defining (multiple) modes for an
element..

Elements table:
id name flags
1 a 9
2 b 3
3 c 11

Flags table:
id value name
1 1 mode 1
2 2 mode 2
3 4 mode 3
4 8 mode 4

Now..
Is it possible with one query to get all the modes listed??
to get a result like:
1 a mode1, mode 4
2 b mode 1, mode 2
3 c mode3, mode 4
Thanx in advance!!!

Regards,
Marco Snoek
Jul 20 '05 #1
0 1917

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Bill Janssen | last post by:
I've encountered an issue dealing with strings read from files. I read a line from a file, then try to print it out as an ASCII string: line = fp.readline() print line.encode('US-ASCII',...
0
by: Quarco | last post by:
Hi, I am using the 'binary flag' principle for defining (multiple) modes for an element.. Elements table: id name flags 1 a 9 2 b ...
1
by: Thomas W | last post by:
I've produced a "binary" version of a python-script using Py2Exe and when run on WinXP it shows a terminal window for a brief moment then the window disappears. How can I avoid this? I want the...
3
by: Paweł | last post by:
Hi! I want to read with C# some binary file with well defined binary structure. In C++ I was declaring appropriate struct, like: typedef struct {BYTE b1; WORD w1, w2; DWORD dw1} REKORD1;...
4
by: Daedric | last post by:
Hello and thanks in advance to anyone who offers help. To make this simple, let's say I have a game which has 100 different monsters. I want a binary data file to hold all of these. It would...
3
by: Peter Hemmingsen | last post by:
Hi, I'm trying to write a function taking an "flagged" enum as parameter. The function should then loop through the enum and do some stuff for each flag that are set. Below is some sample code...
3
by: Benny Ng | last post by:
Dear all, The following is the source. The password is encrypted and saved into the Binary in SQL2K. Now I want to create a new page to compare the existed password and the password that in the...
2
by: =?Utf-8?B?QWxleCBNYWdoZW4=?= | last post by:
Let's say I have an Enum: public enum DaysOfTheWeek : short { Sunday = 0x1, Monday = 0x2, Tuesday = 0x4, Wednesday = 0x8, Thursday = 0x10, Friday = 0x20,
1
by: jmvidalvia | last post by:
Hi! My second post, very similar to the first one. I just mounted a debian server and start to run some few scripts. They "seem" to run, but sometimes (5% of times) I am getting this error message:...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?

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.