Dicionário Protheus
Início

Tabela N3J no Protheus

Município x Especialidade

O que é a tabela N3J no Protheus?

A tabela N3J faz parte do sistema ERP Protheus da TOTVS e é utilizada para município x especialidade.

Ela pertence ao dicionário de dados do Protheus (SX2) e armazena informações essenciais utilizadas em processos como cadastros, movimentações e integrações do sistema.

A tabela N3J possui diversos campos (SX3), cada um com regras específicas como tipo, tamanho e validações, além de índices (SIX) que otimizam a performance das consultas.

Nesta página você pode consultar a estrutura completa da tabela N3J, incluindo todos os campos e índices relacionados.

Propriedades da Tabela

Propriedade Valor
X2_CHAVE N3J
X2_PATH \DATA\
X2_ARQUIVO N3J990
X2_NOME Município x Especialidade
X2_NOMESPA Municipio vs. Especialidad
X2_NOMEENG City vs. Specialty
X2_ROTINA -
X2_MODO C
X2_MODOUN E
X2_MODOEMP E
X2_DELET 0
X2_TTS -
X2_UNICO N3J_FILIAL+N3J_ANO+N3J_CODMUN+N3J_ESPEC
X2_PYME N
X2_MODULO 0
X2_DISPLAY -
X2_SYSOBJ -
X2_USROBJ -
X2_POSLGT 1
X2_CLOB 2
X2_AUTREC 2
X2_TAMFIL 2
X2_TAMUN 0
X2_TAMEMP 0
X2_STAMP 2
X2_INSDT 2
D_E_L_E_T_ -
R_E_C_N_O_ 6550
R_E_C_D_E_L_ 0

Campos da Tabela N3J (42 campos)

X3_ARQUIVO X3_ORDEM X3_CAMPO X3_TIPO X3_TAMANHO X3_DECIMAL X3_TITULO X3_TITSPA X3_TITENG X3_DESCRIC X3_DESCSPA X3_DESCENG X3_PICTURE X3_VALID X3_USADO X3_RELACAO X3_F3 X3_NIVEL X3_RESERV X3_CHECK X3_TRIGGER X3_PROPRI X3_BROWSE X3_VISUAL X3_CONTEXT X3_OBRIGAT X3_VLDUSER X3_CBOX X3_CBOXSPA X3_CBOXENG X3_PICTVAR X3_WHEN X3_INIBRW X3_GRPSXG X3_FOLDER X3_PYME X3_CONDSQL X3_CHKSQL X3_IDXSRV X3_ORTOGRA X3_IDXFLD X3_TELA X3_PICBRV X3_AGRUP X3_POSLGT X3_MODAL X3_CHKSUM X3_ADDSUM D_E_L_E_T_ R_E_C_N_O_ R_E_C_D_E_L_
N3J 01 N3J_FILIAL C 2 0 Filial Sucursal Branch Filial do Sistema Sucursal del Sistema System Branch - - x x x x x x x x x x x x x x x x - - 1 x - - - N A R - - - - - - - - 033 - N - - N N N - - - 1 2 - - - 103678 0
N3J 02 N3J_ANO C 4 0 Ano Ano Year Ano Ano Year - - x x x x x x x x x x x x x x x x GspN001() - 1 x x - - - S A R - - - - - - - - - 1 N - - N N N - - - 1 1 - - - 103679 0
N3J 03 N3J_CODMUN C 6 0 Cod. Municip Cod. Munic. City code Codigo do municipio Codigo de municipio City code - - x x x x x x x x x x x x x x x x - - 1 x - - - N A R - - - - - - - - - - N - - N N N - - - 1 2 - - - 103680 0
N3J 04 N3J_MUNIC C 40 0 Municipio Municipio City Nome Municipio Nombre Municipio City name @! ExistCpo("N31",M->N3J_MUNIC,2) .AND. GSPS240X() x x x x x x x x x x x x x x x x - N31 1 x x - - - S A R - - - - - - - - - 1 N - - N N N - - - 1 1 - - - 103681 0
N3J 05 N3J_ESPEC C 4 0 Especialidad Especialidad Speciality Cod. Especialidade Cod. Especialidad Speciality Code @! ExistCpo("N36") .and. GSPS240Z() x x x x x x x x x x x x x x x x - N36 1 x - - - N A R - - - - - - - - - - N - - N N N - - - 1 2 - - - 103682 0
N3J 06 N3J_DESESP C 40 0 Desc Espec Desc Espec Spec.Desc. Descricao Especialidade Descrip. Especialidad Speciality Description - - x x x x x x x x x x x x x x x x - - 1 x - - - N V R - - - - - - - - - 1 N - - N N N - - - 1 2 - - - 103683 0
N3J 07 N3J_COT01 N 6 0 Cota Mes 01 Cuota Mes 01 Mth.Quot.01 Cota do Mes 01 Cuota del Mes 01 Mth.Quot.01 @E 999,999 vazio() .or. positivo() x x x x x x x x x x x x x x x x - - 1 x - - - N A R - - - - - - - - - 2 N - - N N N - - - 1 2 - - - 103684 0
N3J 08 N3J_COT02 N 6 0 Cota Mes 02 Cuota Mes 02 Mth.Quot.02 Cota do Mes 02 Cuota del Mes 02 Mth.Quot.02 @E 999,999 vazio() .or. positivo() x x x x x x x x x x x x x x x x - - 1 x - - - N A R - - - - - - - - - 2 N - - N N N - - - 1 2 - - - 103685 0
N3J 09 N3J_COT03 N 6 0 Cota Mes 03 Cuota Mes 03 Mth.Quot.03 Cota do Mes 03 Cuota del Mes 03 Mth.Quot.03 @E 999,999 vazio() .or. positivo() x x x x x x x x x x x x x x x x - - 1 x - - - N A R - - - - - - - - - 2 N - - N N N - - - 1 2 - - - 103686 0
N3J 10 N3J_COT04 N 6 0 Cota Mes 04 Cuota Mes 04 Mth.Quot.04 Cota do Mes 04 Cuota del Mes 04 Mth.Quot.04 @E 999,999 Vazio() .or. Positivo() x x x x x x x x x x x x x x x x - - 1 x - - - N A R - - - - - - - - - 2 N - - N N N - - - 1 2 - - - 103687 0
N3J 11 N3J_COT05 N 6 0 Cota Mes 05 Cuota Mes 05 Mth.Quot.05 Cota do Mes 05 Cuota del Mes 05 Mth.Quot.05 @E 999,999 Vazio() .or. Positivo() x x x x x x x x x x x x x x x x - - 1 x - - - N A R - - - - - - - - - 2 N - - N N N - - - 1 2 - - - 103688 0
N3J 12 N3J_COT06 N 6 0 Cota Mes 06 Cuota Mes 06 Mth.Quot.06 Cota do Mes 06 Cuota del Mes 06 Mth.Quot.06 @E 999,999 Vazio() .or. Positivo() x x x x x x x x x x x x x x x x - - 1 x - - - N A R - - - - - - - - - 2 N - - N N N - - - 1 2 - - - 103689 0
N3J 13 N3J_COT07 N 6 0 Cota Mes 07 Cuota Mes 07 Mth.Quot.07 Cota do Mes 07 Cuota del Mes 07 Mth.Quot.07 @E 999,999 Vazio() .or. Positivo() x x x x x x x x x x x x x x x x - - 1 x - - - N A R - - - - - - - - - 2 N - - N N N - - - 1 2 - - - 103690 0
N3J 14 N3J_COT08 N 6 0 Cota Mes 08 Cuota Mes 08 Mth.Quot.08 Cota do Mes 08 Cuota del Mes 08 Mth.Quot.08 @E 999,999 Vazio() .or. Positivo() x x x x x x x x x x x x x x x x - - 1 x - - - N A R - - - - - - - - - 2 N - - N N N - - - 1 2 - - - 103691 0
N3J 15 N3J_COT09 N 6 0 Cota Mes 09 Cuota Mes 09 Mth.Quot.09 Cota do Mes 09 Cuota del Mes 09 Mth.Quot.09 @E 999,999 Vazio() .or. Positivo() x x x x x x x x x x x x x x x x - - 1 x - - - N A R - - - - - - - - - 2 N - - N N N - - - 1 2 - - - 103692 0
N3J 16 N3J_COT10 N 6 0 Cota Mes 10 Cuota Mes 10 Mth.Quot.10 Cota do Mes 10 Cuota del Mes 10 Mth.Quot.10 @E 999,999 Vazio() .or. Positivo() x x x x x x x x x x x x x x x x - - 1 x - - - N A R - - - - - - - - - 2 N - - N N N - - - 1 2 - - - 103693 0
N3J 17 N3J_COT11 N 6 0 Cota Mes 11 Cuota Mes 11 Mth.Quot.11 Cota do Mes 11 Cuota del Mes 11 Mth.Quot.11 @E 999,999 Vazio() .or. Positivo() x x x x x x x x x x x x x x x x - - 1 x - - - N A R - - - - - - - - - 2 N - - N N N - - - 1 2 - - - 103694 0
N3J 18 N3J_COT12 N 6 0 Cota Mes 12 Cuota Mes 12 Mth.Quot.12 Cota do Mes 12 Cuota del Mes 12 Mth.Quot.12 @E 999,999 Vazio() .or. Positivo() x x x x x x x x x x x x x x x x - - 1 x - - - N A R - - - - - - - - - 2 N - - N N N - - - 1 2 - - - 103695 0
N3J 19 N3J_AGE01 N 6 0 Agend Mes 01 Agend Mes 01 Mth.Sched 01 Agend Mes 01 Agend Mes 01 Mth.Sched 01 @E 999,999 vazio() .or. positivo() x x x x x x x x x x x x x x x x - - 1 x - - - N V R - - - - - - - - - 3 N - - N N N - - - 1 2 - - - 103696 0
N3J 20 N3J_AGE02 N 6 0 Agend Mes 02 Agend Mes 02 Mth.Sched 02 Agend Mes 02 Agend Mes 02 Mth.Sched 02 @E 999,999 Vazio() .or. Positivo() x x x x x x x x x x x x x x x x - - 1 x - - - N V R - - - - - - - - - 3 N - - N N N - - - 1 2 - - - 103697 0
N3J 21 N3J_AGE03 N 6 0 Agend Mes 03 Agend Mes 03 Mth.Sched 03 Agend Mes 03 Agend Mes 03 Mth.Sched 03 @E 999,999 Vazio() .or. Positivo() x x x x x x x x x x x x x x x x - - 1 x - - - N V R - - - - - - - - - 3 N - - N N N - - - 1 2 - - - 103698 0
N3J 22 N3J_AGE04 N 6 0 Agend Mes 04 Agend Mes 04 Mth.Sched 04 Agend Mes 04 Agend Mes 04 Mth.Sched 04 @E 999,999 Vazio() .or.Positivo() x x x x x x x x x x x x x x x x - - 1 x - - - N V R - - - - - - - - - 3 N - - N N N - - - 1 2 - - - 103699 0
N3J 23 N3J_AGE05 N 6 0 Agend Mes 05 Agend Mes 05 Mth.Sched 05 Agend Mes 05 Agend Mes 05 Mth.Sched 05 @E 999,999 Vazio() .or. Positivo() x x x x x x x x x x x x x x x x - - 1 x - - - N V R - - - - - - - - - 3 N - - N N N - - - 1 2 - - - 103700 0
N3J 24 N3J_AGE06 N 6 0 Agend Mes 06 Agend Mes 06 Mth.Sched 06 Agend Mes 06 Agend Mes 06 Mth.Sched 06 @E 999,999 Vazio() .or. Positivo() x x x x x x x x x x x x x x x x - - 1 x - - - N V R - - - - - - - - - 3 N - - N N N - - - 1 2 - - - 103701 0
N3J 25 N3J_AGE07 N 6 0 Agend Mes 07 Agend Mes 07 Mth.Sched 07 Agend Mes 07 Agend Mes 07 Mth.Sched 07 @E 999,999 Vazio() .or. Positivo() x x x x x x x x x x x x x x x x - - 1 x - - - N V R - - - - - - - - - 3 N - - N N N - - - 1 2 - - - 103702 0
N3J 26 N3J_AGE08 N 6 0 Agend Mes 08 Agend Mes 08 Mth.Sched 08 Agend Mes 08 Agend Mes 08 Mth.Sched 08 @E 999,999 Vazio() .or. Positivo() x x x x x x x x x x x x x x x x - - 1 x - - - N V R - - - - - - - - - 3 N - - N N N - - - 1 2 - - - 103703 0
N3J 27 N3J_AGE09 N 6 0 Agend Mes 09 Agend Mes 09 Mth.Sched 09 Agend Mes 09 Agend Mes 09 Mth.Sched 09 @E 999,999 Vazio() .or. Positivo x x x x x x x x x x x x x x x x - - 1 x - - - N V R - - - - - - - - - 3 N - - N N N - - - 1 2 - - - 103704 0
N3J 28 N3J_AGE10 N 6 0 Agend Mes 10 Agend Mes 10 Mth.Sched 10 Agend Mes 10 Agend Mes 10 Mth.Sched 10 @E 999,999 Vazio() .or. Positivo() x x x x x x x x x x x x x x x x - - 1 x - - - N V R - - - - - - - - - 3 N - - N N N - - - 1 2 - - - 103705 0
N3J 29 N3J_AGE11 N 6 0 Agend Mes 11 Agend Mes 11 Mth.Sched 11 Agend Mes 11 Agend Mes 11 Mth.Sched 11 @E 999,999 Vazio() .or. Positivo() x x x x x x x x x x x x x x x x - - 1 x - - - N V R - - - - - - - - - 3 N - - N N N - - - 1 2 - - - 103706 0
N3J 30 N3J_AGE12 N 6 0 Agend Mes 12 Agend Mes 12 Mth.Sched 12 Agend Mes 12 Agend Mes 12 Mth.Sched 12 @e 999,999 Vazio() .or. Positivo() x x x x x x x x x x x x x x x x - - 1 x - - - - - - - - - - - - - - - 3 N - - N N N - - - 1 2 - - - 103707 0
N3J 31 N3J_REA01 N 6 0 Reali Mes 01 Real. Mes 01 Acc.Month 01 Reali Mes 01 Real. Mes 01 Acc.Month 01 @E 999,999 Vazio() .or. Positivo() x x x x x x x x x x x x x x x x - - 1 x - - - N V R - - - - - - - - - 4 N - - N N N - - - 1 2 - - - 103708 0
N3J 32 N3J_REA02 N 6 0 Reali Mes 02 Real. Mes 02 Acc.Month 02 Reali Mes 02 Real. Mes 02 Acc.Month 02 @E 999,999 Vazio() .or. Positivo() x x x x x x x x x x x x x x x x - - 1 x - - - N V R - - - - - - - - - 4 N - - N N N - - - 1 2 - - - 103709 0
N3J 33 N3J_REA03 N 6 0 Reali Mes 03 Real. Mes 03 Acc.Month 03 Reali Mes 03 Real. Mes 03 Acc.Month 03 @E 999,999 Vazio() .or. Positivo() x x x x x x x x x x x x x x x x - - 1 x - - - N V R - - - - - - - - - 4 N - - N N N - - - 1 2 - - - 103710 0
N3J 34 N3J_REA04 N 6 0 Reali Mes 04 Real. Mes 04 Acc.Month 04 Reali Mes 04 Real. Mes 04 Acc.Month 04 @E 999,999 Vazio() .or. Positivo() x x x x x x x x x x x x x x x x - - 1 x - - - N V R - - - - - - - - - 4 N - - N N N - - - 1 2 - - - 103711 0
N3J 35 N3J_REA05 N 6 0 Reali Mes 05 Real. Mes 05 Acc.Month 05 Reali Mes 05 Real. Mes 05 Acc.Month 05 @E 999,999 Vazio() .or. Positivo() x x x x x x x x x x x x x x x x - - 1 x - - - N V R - - - - - - - - - 4 N - - N N N - - - 1 2 - - - 103712 0
N3J 36 N3J_REA06 N 6 0 Reali Mes 06 Real. Mes 06 Acc.Month 06 Reali Mes 06 Real. Mes 06 Acc.Month 06 @E 999,999 Vazio() .or. Positivo() x x x x x x x x x x x x x x x x - - 1 x - - - N V R - - - - - - - - - 4 N - - N N N - - - 1 2 - - - 103713 0
N3J 37 N3J_REA07 N 6 0 Reali Mes 07 Real. Mes 07 Acc.Month 07 Reali Mes 07 Real. Mes 07 Acc.Month 07 @E 999,999 Vazio() .or. Positivo() x x x x x x x x x x x x x x x x - - 1 x - - - N V R - - - - - - - - - 4 N - - N N N - - - 1 2 - - - 103714 0
N3J 38 N3J_REA08 N 6 0 Reali Mes 08 Real. Mes 08 Acc.Month 08 Reali Mes 08 Real. Mes 08 Acc.Month 08 @E 999,999 Vazio() .or. Positivo() x x x x x x x x x x x x x x x x - - 1 x - - - N V R - - - - - - - - - 4 N - - N N N - - - 1 2 - - - 103715 0
N3J 39 N3J_REA09 N 6 0 Reali Mes 09 Real. Mes 09 Acc.Month 09 Reali Mes 09 Real. Mes 09 Acc.Month 09 @E 999,999 Vazio() .or. Positivo() x x x x x x x x x x x x x x x x - - 1 x - - - N V R - - - - - - - - - 4 N - - N N N - - - 1 2 - - - 103716 0
N3J 40 N3J_REA10 N 6 0 Reali Mes 10 Real. Mes 10 Acc.Month 10 Reali Mes 10 Real. Mes 10 Acc.Month 10 @E 999,999 Vazio() .or. Positivo() x x x x x x x x x x x x x x x x - - 1 x - - - N V R - - - - - - - - - 4 N - - N N N - - - 1 2 - - - 103717 0
N3J 41 N3J_REA11 N 6 0 Reali Mes 11 Real. Mes 11 Acc.Month 11 Reali Mes 11 Real. Mes 11 Acc.Month 11 @E 999,999 Vazio() .or. Positivo() x x x x x x x x x x x x x x x x - - 1 x - - - N V R - - - - - - - - - 4 N - - N N N - - - 1 2 - - - 103718 0
N3J 42 N3J_REA12 N 6 0 Reali Mes 12 Real. Mes 12 Acc.Month 12 Reali Mes 12 Real. Mes 12 Acc.Month 12 @E 999,999 Vazio() .or. Positivo() x x x x x x x x x x x x x x x x - - 1 x - - - N V R - - - - - - - - - 4 N - - N N N - - - 1 2 - - - 103719 0

Índices da Tabela N3J (1 índices)

INDICE ORDEM CHAVE DESCRICAO DESCSPA DESCENG PROPRI F3 NICKNAME SHOWPESQ IX_VIRTUAL IX_VIRCUST D_E_L_E_T_ R_E_C_N_O_ R_E_C_D_E_L_
N3J 1 N3J_FILIAL+N3J_ANO+N3J_CODMUN+N3J_ESPEC Ano + Cod. Municip + Especialidad Ano + Cod. Munic. + Especialidad Year + City code + Speciality S - - S 2 3 - 15001 0

Perguntas frequentes

Para que serve a tabela N3J no Protheus?

Ela é utilizada para município x especialidade dentro do sistema ERP Protheus.

Como consultar os campos da tabela N3J?

Nesta página você pode visualizar todos os campos, incluindo tipo, tamanho e validações.

O que são os índices da tabela N3J?

Os índices são estruturas que melhoram a performance de busca e acesso aos dados dentro do Protheus.

Exemplo de consulta SQL da tabela N3J

Modelo de query gerado automaticamente com base na estrutura da tabela.

SELECT
    N3J_FILIAL,
    N3J_ANO,
    N3J_CODMUN,
    N3J_MUNIC,
    N3J_ESPEC,
    N3J_DESESP,
    N3J_COT01,
    N3J_COT02,
    N3J_COT03,
    N3J_COT04,
    N3J_COT05,
    N3J_COT06,
    N3J_COT07,
    N3J_COT08,
    N3J_COT09,
    N3J_COT10,
    N3J_COT11,
    N3J_COT12,
    N3J_AGE01,
    N3J_AGE02,
    N3J_AGE03,
    N3J_AGE04,
    N3J_AGE05,
    N3J_AGE06,
    N3J_AGE07,
    N3J_AGE08,
    N3J_AGE09,
    N3J_AGE10,
    N3J_AGE11,
    N3J_AGE12,
    N3J_REA01,
    N3J_REA02,
    N3J_REA03,
    N3J_REA04,
    N3J_REA05,
    N3J_REA06,
    N3J_REA07,
    N3J_REA08,
    N3J_REA09,
    N3J_REA10,
    N3J_REA11,
    N3J_REA12
FROM N3J
WHERE
    D_E_L_E_T_ = ' '
    AND N3J_FILIAL = 'VALOR'
    AND N3J_ANO = 'VALOR'
    AND N3J_CODMUN = 'VALOR'
    AND N3J_MUNIC = 'VALOR'
    AND N3J_ESPEC = 'VALOR'
    AND N3J_DESESP = 'VALOR'
    AND N3J_COT01 = 0
    AND N3J_COT02 = 0
    AND N3J_COT03 = 0
    AND N3J_COT04 = 0
    AND N3J_COT05 = 0
    AND N3J_COT06 = 0
    AND N3J_COT07 = 0
    AND N3J_COT08 = 0
    AND N3J_COT09 = 0
    AND N3J_COT10 = 0
    AND N3J_COT11 = 0
    AND N3J_COT12 = 0
    AND N3J_AGE01 = 0
    AND N3J_AGE02 = 0
    AND N3J_AGE03 = 0
    AND N3J_AGE04 = 0
    AND N3J_AGE05 = 0
    AND N3J_AGE06 = 0
    AND N3J_AGE07 = 0
    AND N3J_AGE08 = 0
    AND N3J_AGE09 = 0
    AND N3J_AGE10 = 0
    AND N3J_AGE11 = 0
    AND N3J_AGE12 = 0
    AND N3J_REA01 = 0
    AND N3J_REA02 = 0
    AND N3J_REA03 = 0
    AND N3J_REA04 = 0
    AND N3J_REA05 = 0
    AND N3J_REA06 = 0
    AND N3J_REA07 = 0
    AND N3J_REA08 = 0
    AND N3J_REA09 = 0
    AND N3J_REA10 = 0
    AND N3J_REA11 = 0
    AND N3J_REA12 = 0