Skip to main content
-1 votes
1 answer
72 views

I have implemented this code to add a check constraint after creating the table ALTER TABLE recruitment_data.candidate_experiences ADD CONSTRAINT chk_experience_dates CHECK ( ...
Beliz Yazici's user avatar
0 votes
1 answer
93 views

I want to make sure, that a column doesn't have a value that exists in another column of another table. It is kind of like a negative foreign key check, if you will. However adding a constraint doesn'...
Caulder's user avatar
  • 459
0 votes
0 answers
49 views

I Have 3 tables ProdVariant, Variant, VariantValues. ProductVariant ---------------------------- ProductVariantID PK ProductID FK NOT NULL VariantID FK NULL ...
Miff's user avatar
  • 15
1 vote
1 answer
239 views

Adding constraint using alter table dok add constraint dok_during_exclude EXCLUDE USING gist (pais2obj WITH =, during WITH &&) throws error ERROR: relation "dok_during_exclude" ...
Andrus's user avatar
  • 28.2k
-2 votes
2 answers
138 views

CREATE TABLE Oracle_All_DataTypes ( ID NUMBER(10) PRIMARY KEY, -- Unique identifier FirstName VARCHAR2(50) NOT NULL, -- First name must be provided LastName VARCHAR2(50), -- Last name is ...
Mohammad Saqlain's user avatar
1 vote
1 answer
86 views

I have 2 SQLite tables, users and transactions where a "transaction" happens between exactly 2 users. A short example would be: CREATE TABLE users( id INTEGER PRIMARY KEY ASC ); CREATE ...
Rares Dima's user avatar
  • 1,787
0 votes
1 answer
38 views

In PostgreSQL, I want a check constraint if column "Art" (this never is NULL) is == 'Typ 3' and three other columns either all NULL or all NOT NULL. My code fails for the first record having ...
StOMicha's user avatar
  • 481
-1 votes
1 answer
75 views

Can check constraint be used instead of pessimistic locks? Consider there is following table in SQL Server: create table Balances( id int, userId int, balance money) If more than 1 thread try to ...
user19291301's user avatar
1 vote
2 answers
77 views

I need a way to create either a validator or a constraint at model level to evaluate two or more fields to be able to be null/blank only if all of them are null/blank at the same time. For example, in ...
42WaysToAnswerThat's user avatar
0 votes
1 answer
142 views

I need to write test for a custom field with access to the database. The code is the following : class TestMyField (TestCase): def SetUpClass(cls): super().setUpClass() class MyModel(...
piscvau's user avatar
  • 23
1 vote
4 answers
132 views

A personal identity codes consist of a string of numbers that indicates the individual’s date of birth, an individualized string, and a control character. Example: 150600A905P • 150600 = Date of birth ...
Tien Huynh's user avatar
2 votes
1 answer
399 views

I have two variables in Stata which are string (MAIDCW1 and strboth). I would like to check for each observation whether the value of MAIDCW1 exists somewhere in the whole of strboth. If this value ...
user23332575's user avatar
0 votes
0 answers
96 views

This is the Table in SQlite: CREATE TABLE document( id TEXT NOT NULL, data TEXT NOT NULL, CHECK ( json_type(data, '$.documentLines.title') IN ('text') ), PRIMARY KEY (id) ) STRICT; This ...
rranke's user avatar
  • 33
1 vote
2 answers
76 views

I want to include a check constraint for my model in my members app where the sex field should be male, female or null. Here is my code: from django.db import models from django.db.models import ...
Canberk Ekinci's user avatar
-1 votes
1 answer
172 views

We don't have application running on server, so all the logic need to be done on Bigquery. I know Microsoft SQL Server have check constraint like: CREATE TABLE MyCleanJapanClient ( Phone varchar(...
少強甘's user avatar

15 30 50 per page
1
2 3 4 5
48