Foreign key referencing primary key of multiple valuesAdd a column with a default value to an existing table in SQL ServerHow can foreign key constraints be temporarily disabled using T-SQL?How to concatenate text from multiple rows into a single text string in SQL server?Inserting multiple rows in a single SQL query?How can I list all foreign keys referencing a given table in SQL Server?Foreign key constraint may cause cycles or multiple cascade paths?Add Foreign Key relationship between two DatabasesDeleting a row with a self-referencing foreign keyFailed to enable constraints. One or more rows contain values violating non-null, unique, or foreign-key constraintsComposite Foreign key in ORACLE
Need help understanding what a natural log transformation is actually doing and why specific transformations are required for linear regression
What are the advantages of simplicial model categories over non-simplicial ones?
What is the highest possible scrabble score for placing a single tile
Why can Carol Danvers change her suit colours in the first place?
Do the primes contain an infinite almost arithmetic progression?
How to cover method return statement in Apex Class?
On a tidally locked planet, would time be quantized?
Is there a RAID 0 Equivalent for RAM?
How does the math work for Perception checks?
What if a revenant (monster) gains fire resistance?
Picking the different solutions to the time independent Schrodinger eqaution
The IT department bottlenecks progress. How should I handle this?
Unexpected behavior of the procedure `Area` on the object 'Polygon'
Can a stoichiometric mixture of oxygen and methane exist as a liquid at standard pressure and some (low) temperature?
Keeping a ball lost forever
Yosemite Fire Rings - What to Expect?
What is the evidence for the "tyranny of the majority problem" in a direct democracy context?
Why is so much work done on numerical verification of the Riemann Hypothesis?
How do you respond to a colleague from another team when they're wrongly expecting that you'll help them?
Did arcade monitors have same pixel aspect ratio as TV sets?
Fear of getting stuck on one programming language / technology that is not used in my country
Can I still be respawned if I die by falling off the map?
Mixing PEX brands
Calculating total slots
Foreign key referencing primary key of multiple values
Add a column with a default value to an existing table in SQL ServerHow can foreign key constraints be temporarily disabled using T-SQL?How to concatenate text from multiple rows into a single text string in SQL server?Inserting multiple rows in a single SQL query?How can I list all foreign keys referencing a given table in SQL Server?Foreign key constraint may cause cycles or multiple cascade paths?Add Foreign Key relationship between two DatabasesDeleting a row with a self-referencing foreign keyFailed to enable constraints. One or more rows contain values violating non-null, unique, or foreign-key constraintsComposite Foreign key in ORACLE
Im using ms sql server. I get this msg when I reference a primary key that is a composite key of 3 values in the foreign key.
"number of referencing columns in foreign key differs from the number of reference columns". The problem lies in second last line of code in member booking. Any ideas? Thanks in advance.
CREATE TABLE room
(
Block CHAR (1),
Lvl INT,
rNum INT,
RmType VARCHAR (15),
Condition VARCHAR (15),
CONSTRAINT room_PK PRIMARY KEY (Block, Lvl, rNum),
)
CREATE TABLE booking
(
BookingID INT,
BStartDate DATE,
BEndDate DATE,
Fee DECIMAL (8,2) NOT NULL CHECK (fee >= 0),
Memberbooking INT NOT NULL,
MemberID INT NOT NULL,
CONSTRAINT booking_pk PRIMARY KEY (BookingID),
CONSTRAINT FK_Booking FOREIGN KEY (Memberbooking) references room (Block, Lvl, rNum),
CONSTRAINT FK_MemberID FOREIGN KEY (MemberID) references member (ID)
)
sql sql-server foreign-keys
add a comment |
Im using ms sql server. I get this msg when I reference a primary key that is a composite key of 3 values in the foreign key.
"number of referencing columns in foreign key differs from the number of reference columns". The problem lies in second last line of code in member booking. Any ideas? Thanks in advance.
CREATE TABLE room
(
Block CHAR (1),
Lvl INT,
rNum INT,
RmType VARCHAR (15),
Condition VARCHAR (15),
CONSTRAINT room_PK PRIMARY KEY (Block, Lvl, rNum),
)
CREATE TABLE booking
(
BookingID INT,
BStartDate DATE,
BEndDate DATE,
Fee DECIMAL (8,2) NOT NULL CHECK (fee >= 0),
Memberbooking INT NOT NULL,
MemberID INT NOT NULL,
CONSTRAINT booking_pk PRIMARY KEY (BookingID),
CONSTRAINT FK_Booking FOREIGN KEY (Memberbooking) references room (Block, Lvl, rNum),
CONSTRAINT FK_MemberID FOREIGN KEY (MemberID) references member (ID)
)
sql sql-server foreign-keys
So, inMemberBooking
, anint
, you're somehow storing achar(1)
and twoint
s in order to referenceBlock, Lvl, rNum
?
– Damien_The_Unbeliever
Mar 7 at 6:57
So memberbooking should be what variable type instead? Thanks
– Ralph
Mar 7 at 7:05
add a comment |
Im using ms sql server. I get this msg when I reference a primary key that is a composite key of 3 values in the foreign key.
"number of referencing columns in foreign key differs from the number of reference columns". The problem lies in second last line of code in member booking. Any ideas? Thanks in advance.
CREATE TABLE room
(
Block CHAR (1),
Lvl INT,
rNum INT,
RmType VARCHAR (15),
Condition VARCHAR (15),
CONSTRAINT room_PK PRIMARY KEY (Block, Lvl, rNum),
)
CREATE TABLE booking
(
BookingID INT,
BStartDate DATE,
BEndDate DATE,
Fee DECIMAL (8,2) NOT NULL CHECK (fee >= 0),
Memberbooking INT NOT NULL,
MemberID INT NOT NULL,
CONSTRAINT booking_pk PRIMARY KEY (BookingID),
CONSTRAINT FK_Booking FOREIGN KEY (Memberbooking) references room (Block, Lvl, rNum),
CONSTRAINT FK_MemberID FOREIGN KEY (MemberID) references member (ID)
)
sql sql-server foreign-keys
Im using ms sql server. I get this msg when I reference a primary key that is a composite key of 3 values in the foreign key.
"number of referencing columns in foreign key differs from the number of reference columns". The problem lies in second last line of code in member booking. Any ideas? Thanks in advance.
CREATE TABLE room
(
Block CHAR (1),
Lvl INT,
rNum INT,
RmType VARCHAR (15),
Condition VARCHAR (15),
CONSTRAINT room_PK PRIMARY KEY (Block, Lvl, rNum),
)
CREATE TABLE booking
(
BookingID INT,
BStartDate DATE,
BEndDate DATE,
Fee DECIMAL (8,2) NOT NULL CHECK (fee >= 0),
Memberbooking INT NOT NULL,
MemberID INT NOT NULL,
CONSTRAINT booking_pk PRIMARY KEY (BookingID),
CONSTRAINT FK_Booking FOREIGN KEY (Memberbooking) references room (Block, Lvl, rNum),
CONSTRAINT FK_MemberID FOREIGN KEY (MemberID) references member (ID)
)
sql sql-server foreign-keys
sql sql-server foreign-keys
edited Mar 7 at 6:32
forpas
17.8k3728
17.8k3728
asked Mar 7 at 6:31
RalphRalph
213
213
So, inMemberBooking
, anint
, you're somehow storing achar(1)
and twoint
s in order to referenceBlock, Lvl, rNum
?
– Damien_The_Unbeliever
Mar 7 at 6:57
So memberbooking should be what variable type instead? Thanks
– Ralph
Mar 7 at 7:05
add a comment |
So, inMemberBooking
, anint
, you're somehow storing achar(1)
and twoint
s in order to referenceBlock, Lvl, rNum
?
– Damien_The_Unbeliever
Mar 7 at 6:57
So memberbooking should be what variable type instead? Thanks
– Ralph
Mar 7 at 7:05
So, in
MemberBooking
, an int
, you're somehow storing a char(1)
and two int
s in order to reference Block, Lvl, rNum
?– Damien_The_Unbeliever
Mar 7 at 6:57
So, in
MemberBooking
, an int
, you're somehow storing a char(1)
and two int
s in order to reference Block, Lvl, rNum
?– Damien_The_Unbeliever
Mar 7 at 6:57
So memberbooking should be what variable type instead? Thanks
– Ralph
Mar 7 at 7:05
So memberbooking should be what variable type instead? Thanks
– Ralph
Mar 7 at 7:05
add a comment |
4 Answers
4
active
oldest
votes
You are getting an error because you are trying to map 1 column (FOREIGN KEY (Memberbooking)) with 3 columns room (Block, Lvl, rNum)
it's possible to create a foreign key relationship to a compound (more
than one column) primary key, make sure to specify the same number of columns in your FOREIGN KEY
add a comment |
Since I see from the comments you are intent to implement this type of check, I would propose a check constraint:
CONSTRAINT CK_MemberID CHECK (EXISTS(SELECT 1 FROM room where Memberbooking=room.Block+convert(nchar,room.Lvl)+convert(nchar,room.rNum)))
However, this design is not very good. The lack of seperators in the Membermooking field might cause collisions.
Eg, consider you have a Memberbooking: 'A1101'
Is that Block A, Lvl 11, rNum 01? Or is it Block A, Lvl 1, rNum 101?
The second case is more likely, thanks for your suggestion.
– Ralph
Mar 7 at 15:02
add a comment |
You define this constraint in the table booking
:
CONSTRAINT FK_Booking FOREIGN KEY (Memberbooking) references room (Block, Lvl, rNum)
meaning that you want the column Memberbooking
to reference 3 columns (!!) in the table room
.
Each column from a table can reference one column from another table, not multiple ones.
You can define the same column to reference more than 1 columns in another table, but with different constraints, and always 1 to 1.
Read more here: Create Foreign Key Relationships
Understood, able to rewrite the expression in this case? Thanks
– Ralph
Mar 7 at 7:05
You must reference only 1 column and since Block is a different data type than Memberbooking you can do this:CONSTRAINT FK_Booking FOREIGN KEY (Memberbooking) references room (Lvl)
orCONSTRAINT FK_Booking FOREIGN KEY (Memberbooking) references room (rNum)
– forpas
Mar 7 at 7:56
add a comment |
On table "room", you currently have a compound natural key. This is a valid design decision. The alternative would be to add a single column artificial id, such as an int Identity. That would lead to two keys on the same table (one of them Primary Key, the other one Unique constraint).
In a foreign key constraint, you can reference any Unique constraint or Primary Key. If you want to keep the "room" table the way it is, then you need to mirror those key fields in the referencing table. So that would mean your "booking" table would need a Block char(1), Lvl int and rNum int column.
That is why an artificial key (on room) can be useful, because then your foreign key constraint (on booking) can be single column and reference that Unique constaint.
add a comment |
Your Answer
StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55037414%2fforeign-key-referencing-primary-key-of-multiple-values%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
4 Answers
4
active
oldest
votes
4 Answers
4
active
oldest
votes
active
oldest
votes
active
oldest
votes
You are getting an error because you are trying to map 1 column (FOREIGN KEY (Memberbooking)) with 3 columns room (Block, Lvl, rNum)
it's possible to create a foreign key relationship to a compound (more
than one column) primary key, make sure to specify the same number of columns in your FOREIGN KEY
add a comment |
You are getting an error because you are trying to map 1 column (FOREIGN KEY (Memberbooking)) with 3 columns room (Block, Lvl, rNum)
it's possible to create a foreign key relationship to a compound (more
than one column) primary key, make sure to specify the same number of columns in your FOREIGN KEY
add a comment |
You are getting an error because you are trying to map 1 column (FOREIGN KEY (Memberbooking)) with 3 columns room (Block, Lvl, rNum)
it's possible to create a foreign key relationship to a compound (more
than one column) primary key, make sure to specify the same number of columns in your FOREIGN KEY
You are getting an error because you are trying to map 1 column (FOREIGN KEY (Memberbooking)) with 3 columns room (Block, Lvl, rNum)
it's possible to create a foreign key relationship to a compound (more
than one column) primary key, make sure to specify the same number of columns in your FOREIGN KEY
answered Mar 7 at 6:53
Mukesh AroraMukesh Arora
59210
59210
add a comment |
add a comment |
Since I see from the comments you are intent to implement this type of check, I would propose a check constraint:
CONSTRAINT CK_MemberID CHECK (EXISTS(SELECT 1 FROM room where Memberbooking=room.Block+convert(nchar,room.Lvl)+convert(nchar,room.rNum)))
However, this design is not very good. The lack of seperators in the Membermooking field might cause collisions.
Eg, consider you have a Memberbooking: 'A1101'
Is that Block A, Lvl 11, rNum 01? Or is it Block A, Lvl 1, rNum 101?
The second case is more likely, thanks for your suggestion.
– Ralph
Mar 7 at 15:02
add a comment |
Since I see from the comments you are intent to implement this type of check, I would propose a check constraint:
CONSTRAINT CK_MemberID CHECK (EXISTS(SELECT 1 FROM room where Memberbooking=room.Block+convert(nchar,room.Lvl)+convert(nchar,room.rNum)))
However, this design is not very good. The lack of seperators in the Membermooking field might cause collisions.
Eg, consider you have a Memberbooking: 'A1101'
Is that Block A, Lvl 11, rNum 01? Or is it Block A, Lvl 1, rNum 101?
The second case is more likely, thanks for your suggestion.
– Ralph
Mar 7 at 15:02
add a comment |
Since I see from the comments you are intent to implement this type of check, I would propose a check constraint:
CONSTRAINT CK_MemberID CHECK (EXISTS(SELECT 1 FROM room where Memberbooking=room.Block+convert(nchar,room.Lvl)+convert(nchar,room.rNum)))
However, this design is not very good. The lack of seperators in the Membermooking field might cause collisions.
Eg, consider you have a Memberbooking: 'A1101'
Is that Block A, Lvl 11, rNum 01? Or is it Block A, Lvl 1, rNum 101?
Since I see from the comments you are intent to implement this type of check, I would propose a check constraint:
CONSTRAINT CK_MemberID CHECK (EXISTS(SELECT 1 FROM room where Memberbooking=room.Block+convert(nchar,room.Lvl)+convert(nchar,room.rNum)))
However, this design is not very good. The lack of seperators in the Membermooking field might cause collisions.
Eg, consider you have a Memberbooking: 'A1101'
Is that Block A, Lvl 11, rNum 01? Or is it Block A, Lvl 1, rNum 101?
answered Mar 7 at 8:05
George MenoutisGeorge Menoutis
2,833521
2,833521
The second case is more likely, thanks for your suggestion.
– Ralph
Mar 7 at 15:02
add a comment |
The second case is more likely, thanks for your suggestion.
– Ralph
Mar 7 at 15:02
The second case is more likely, thanks for your suggestion.
– Ralph
Mar 7 at 15:02
The second case is more likely, thanks for your suggestion.
– Ralph
Mar 7 at 15:02
add a comment |
You define this constraint in the table booking
:
CONSTRAINT FK_Booking FOREIGN KEY (Memberbooking) references room (Block, Lvl, rNum)
meaning that you want the column Memberbooking
to reference 3 columns (!!) in the table room
.
Each column from a table can reference one column from another table, not multiple ones.
You can define the same column to reference more than 1 columns in another table, but with different constraints, and always 1 to 1.
Read more here: Create Foreign Key Relationships
Understood, able to rewrite the expression in this case? Thanks
– Ralph
Mar 7 at 7:05
You must reference only 1 column and since Block is a different data type than Memberbooking you can do this:CONSTRAINT FK_Booking FOREIGN KEY (Memberbooking) references room (Lvl)
orCONSTRAINT FK_Booking FOREIGN KEY (Memberbooking) references room (rNum)
– forpas
Mar 7 at 7:56
add a comment |
You define this constraint in the table booking
:
CONSTRAINT FK_Booking FOREIGN KEY (Memberbooking) references room (Block, Lvl, rNum)
meaning that you want the column Memberbooking
to reference 3 columns (!!) in the table room
.
Each column from a table can reference one column from another table, not multiple ones.
You can define the same column to reference more than 1 columns in another table, but with different constraints, and always 1 to 1.
Read more here: Create Foreign Key Relationships
Understood, able to rewrite the expression in this case? Thanks
– Ralph
Mar 7 at 7:05
You must reference only 1 column and since Block is a different data type than Memberbooking you can do this:CONSTRAINT FK_Booking FOREIGN KEY (Memberbooking) references room (Lvl)
orCONSTRAINT FK_Booking FOREIGN KEY (Memberbooking) references room (rNum)
– forpas
Mar 7 at 7:56
add a comment |
You define this constraint in the table booking
:
CONSTRAINT FK_Booking FOREIGN KEY (Memberbooking) references room (Block, Lvl, rNum)
meaning that you want the column Memberbooking
to reference 3 columns (!!) in the table room
.
Each column from a table can reference one column from another table, not multiple ones.
You can define the same column to reference more than 1 columns in another table, but with different constraints, and always 1 to 1.
Read more here: Create Foreign Key Relationships
You define this constraint in the table booking
:
CONSTRAINT FK_Booking FOREIGN KEY (Memberbooking) references room (Block, Lvl, rNum)
meaning that you want the column Memberbooking
to reference 3 columns (!!) in the table room
.
Each column from a table can reference one column from another table, not multiple ones.
You can define the same column to reference more than 1 columns in another table, but with different constraints, and always 1 to 1.
Read more here: Create Foreign Key Relationships
edited Mar 7 at 8:13
answered Mar 7 at 6:38
forpasforpas
17.8k3728
17.8k3728
Understood, able to rewrite the expression in this case? Thanks
– Ralph
Mar 7 at 7:05
You must reference only 1 column and since Block is a different data type than Memberbooking you can do this:CONSTRAINT FK_Booking FOREIGN KEY (Memberbooking) references room (Lvl)
orCONSTRAINT FK_Booking FOREIGN KEY (Memberbooking) references room (rNum)
– forpas
Mar 7 at 7:56
add a comment |
Understood, able to rewrite the expression in this case? Thanks
– Ralph
Mar 7 at 7:05
You must reference only 1 column and since Block is a different data type than Memberbooking you can do this:CONSTRAINT FK_Booking FOREIGN KEY (Memberbooking) references room (Lvl)
orCONSTRAINT FK_Booking FOREIGN KEY (Memberbooking) references room (rNum)
– forpas
Mar 7 at 7:56
Understood, able to rewrite the expression in this case? Thanks
– Ralph
Mar 7 at 7:05
Understood, able to rewrite the expression in this case? Thanks
– Ralph
Mar 7 at 7:05
You must reference only 1 column and since Block is a different data type than Memberbooking you can do this:
CONSTRAINT FK_Booking FOREIGN KEY (Memberbooking) references room (Lvl)
or CONSTRAINT FK_Booking FOREIGN KEY (Memberbooking) references room (rNum)
– forpas
Mar 7 at 7:56
You must reference only 1 column and since Block is a different data type than Memberbooking you can do this:
CONSTRAINT FK_Booking FOREIGN KEY (Memberbooking) references room (Lvl)
or CONSTRAINT FK_Booking FOREIGN KEY (Memberbooking) references room (rNum)
– forpas
Mar 7 at 7:56
add a comment |
On table "room", you currently have a compound natural key. This is a valid design decision. The alternative would be to add a single column artificial id, such as an int Identity. That would lead to two keys on the same table (one of them Primary Key, the other one Unique constraint).
In a foreign key constraint, you can reference any Unique constraint or Primary Key. If you want to keep the "room" table the way it is, then you need to mirror those key fields in the referencing table. So that would mean your "booking" table would need a Block char(1), Lvl int and rNum int column.
That is why an artificial key (on room) can be useful, because then your foreign key constraint (on booking) can be single column and reference that Unique constaint.
add a comment |
On table "room", you currently have a compound natural key. This is a valid design decision. The alternative would be to add a single column artificial id, such as an int Identity. That would lead to two keys on the same table (one of them Primary Key, the other one Unique constraint).
In a foreign key constraint, you can reference any Unique constraint or Primary Key. If you want to keep the "room" table the way it is, then you need to mirror those key fields in the referencing table. So that would mean your "booking" table would need a Block char(1), Lvl int and rNum int column.
That is why an artificial key (on room) can be useful, because then your foreign key constraint (on booking) can be single column and reference that Unique constaint.
add a comment |
On table "room", you currently have a compound natural key. This is a valid design decision. The alternative would be to add a single column artificial id, such as an int Identity. That would lead to two keys on the same table (one of them Primary Key, the other one Unique constraint).
In a foreign key constraint, you can reference any Unique constraint or Primary Key. If you want to keep the "room" table the way it is, then you need to mirror those key fields in the referencing table. So that would mean your "booking" table would need a Block char(1), Lvl int and rNum int column.
That is why an artificial key (on room) can be useful, because then your foreign key constraint (on booking) can be single column and reference that Unique constaint.
On table "room", you currently have a compound natural key. This is a valid design decision. The alternative would be to add a single column artificial id, such as an int Identity. That would lead to two keys on the same table (one of them Primary Key, the other one Unique constraint).
In a foreign key constraint, you can reference any Unique constraint or Primary Key. If you want to keep the "room" table the way it is, then you need to mirror those key fields in the referencing table. So that would mean your "booking" table would need a Block char(1), Lvl int and rNum int column.
That is why an artificial key (on room) can be useful, because then your foreign key constraint (on booking) can be single column and reference that Unique constaint.
answered Mar 7 at 12:07
Gert-JanGert-Jan
446
446
add a comment |
add a comment |
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55037414%2fforeign-key-referencing-primary-key-of-multiple-values%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
So, in
MemberBooking
, anint
, you're somehow storing achar(1)
and twoint
s in order to referenceBlock, Lvl, rNum
?– Damien_The_Unbeliever
Mar 7 at 6:57
So memberbooking should be what variable type instead? Thanks
– Ralph
Mar 7 at 7:05