Resultados Pesquisa
A tabela RB5 faz parte do sistema ERP Protheus da TOTVS e é utilizada para resultados pesquisa.
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 RB5 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 RB5, incluindo todos os campos e índices relacionados.
| Propriedade | Valor |
|---|---|
| X2_CHAVE | RB5 |
| X2_PATH | \DATA\ |
| X2_ARQUIVO | RB5990 |
| X2_NOME | Resultados Pesquisa |
| X2_NOMESPA | Resultados Encuesta |
| X2_NOMEENG | Search Results |
| X2_ROTINA | - |
| X2_MODO | C |
| X2_MODOUN | E |
| X2_MODOEMP | E |
| X2_DELET | 0 |
| X2_TTS | - |
| X2_UNICO | - |
| X2_PYME | N |
| X2_MODULO | 40 |
| X2_DISPLAY | - |
| X2_SYSOBJ | CSAA050 |
| 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_ | 7727 |
| R_E_C_D_E_L_ | 0 |
| 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_ |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| RB5 | 01 | RB5_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 | - | - | 1 | - | - | - | - | N | - | - | - | - | - | - | - | - | - | - | 033 | - | S | - | - | N | N | N | - | - | - | 1 | 2 | - | - | - | 121543 | 0 |
| RB5 | 02 | RB5_PESQ | C | 4 | 0 | Cod.Pesquisa | Cod. Encuest | Survey Code | Cod Pesquisa Salarial | Cod. Encuesta Salarial | Wages Survey Code | @E 9999 | - | x x x x x x x x x x x x x x x x | - | - | 1 | xx | - | - | - | S | - | - | - | - | - | - | - | - | - | - | - | - | S | - | #RB5_PESQ <>' ' | N | N | N | - | - | - | 1 | 1 | - | - | - | 121544 | 0 |
| RB5 | 03 | RB5_FUNCAO | C | 5 | 0 | Cod.Funcao | Cod.Funcion | Job Code | Cod Funcao | Cod Funcion | Job Code | @! | NaoVazio() .And. Cs050Ver() .And. ExistCpo("SRJ") .And. Cs050Desc(1) | x x x x x x x x x x x x x x x x | - | SRJ | 1 | xx | - | - | - | S | - | - | - | - | - | - | - | - | - | - | 160 | - | S | - | #RB5_FUNCAO<>' ' | N | N | N | - | - | - | 1 | 1 | - | - | - | 121545 | 0 |
| RB5 | 04 | RB5_DESCFU | C | 30 | 0 | Descr.Funcao | Descr.Func. | Job Descrip. | Descricao Funcao | Descripcion Funcion | Job Description | @! | - | x x x x x x x x x x x x x x x x | IF(INCLUI,"",FDesc("SRJ",RB5->RB5_FUNCAO,"RJ_DESC",30)) | - | 1 | xx | - | - | - | N | V | V | - | - | - | - | - | - | - | - | - | - | S | - | - | N | N | N | - | - | - | 1 | 1 | - | - | - | 121546 | 0 |
| RB5 | 05 | RB5_REGIAO | C | 4 | 0 | Cod Regiao | Cod. Region | Area Code | Codigo Regiao | Codigo Region | Area Code | @E 9999 | NaoVazio() .And. Cs050Ver() .And. ExistCpo("SX5","RC"+M->RB5_REGIAO) .And. Cs050Desc(2) | x x x x x x x x x x x x x x x x | - | RC | 1 | xx | - | - | - | S | - | - | - | - | - | - | - | - | - | - | - | - | S | - | - | N | N | N | - | - | - | 1 | 1 | - | - | - | 121547 | 0 |
| RB5 | 06 | RB5_DESCRE | C | 30 | 0 | Descr.Regiao | Descr.Region | Area Descr | Descricao Regiao | Descripcion Region | Region Description | @! | - | x x x x x x x x x x x x x x x x | IF(INCLUI,"",FDesc("SX5","RC"+RB5->RB5_REGIAO,"X5_DESCRI",30)) | - | 1 | xxxx xx | - | - | - | N | V | V | - | - | - | - | - | - | - | - | - | - | S | - | - | N | N | N | - | - | - | 1 | 1 | - | - | - | 121548 | 0 |
| RB5 | 07 | RB5_PORTE | C | 1 | 0 | Porte | Porte | Size | Porte | Porte | Size | @! | NaoVazio() .And. Cs050Ver() .And. Pertence("PMG") | x x x x x x x x x x x x x x x x | - | - | 1 | xx | - | - | - | S | - | - | - | - | P=Pequeno;M=Medio;G=Grande | P=Pequeno;M=Mediano;G=Grande | P=Small;M=Medium;G=Large | - | - | - | - | - | S | - | - | N | N | N | - | - | - | 1 | 1 | - | - | - | 121549 | 0 |
| RB5 | 08 | RB5_CORTE | C | 2 | 0 | Cod Corte | Cod Corte | Cutoff Code | Codigo Corte | Codigo Corte | Cutoff Code | @E 99 | ExistCpo("SX5","RG"+M->RB5_CORTE) | x x x x x x x x x x x x x x x x | - | RG | 1 | xx | - | - | - | S | - | - | - | - | - | - | - | - | - | - | - | - | S | - | - | N | N | N | - | - | - | 1 | 1 | - | - | - | 121550 | 0 |
| RB5 | 09 | RB5_VLCORT | N | 6 | 2 | Valor Corte | Valor Corte | Cutoff Value | Valor do Corte | Valor de Corte | Cutoff Value | @E 999.99 | - | x x x x x x x x x x x x x x x x | - | - | 1 | xx | - | - | - | S | - | - | - | - | - | - | - | - | - | - | - | - | S | - | - | N | N | N | - | - | - | 1 | 1 | - | - | - | 121551 | 0 |
| RB5 | 10 | RB5_CODVL | C | 4 | 0 | Cod Valor | Cod. Valor | Value Code | Codigo do Valor | Codigo de Valor | Value Code | @E 9999 | ExistCpo("SX5","RF"+M->RB5_CODVL) | x x x x x x x x x x x x x x x x | - | RF | 1 | xx | - | - | - | S | - | - | - | - | - | - | - | - | - | - | - | - | S | - | - | N | N | N | - | - | - | 1 | 1 | - | - | - | 121552 | 0 |
| RB5 | 11 | RB5_VALOR | N | 12 | 2 | Vl Base | Vlr. Base | Base Value | Valor Base | Valor Base | Base Value | @E 999999999.99 | - | x x x x x x x x x x x x x x x x | - | - | 1 | xx | - | - | - | S | - | - | - | - | - | - | - | - | - | - | - | - | S | - | - | N | N | N | - | - | - | 1 | 1 | - | - | - | 121553 | 0 |
| RB5 | 12 | RB5_VLOUTR | N | 12 | 2 | Vl BaseOutr | Vl Base+Otro | Bas.Vl+Other | Valor Base + Adicionais | Valor Base + Adicionales | Base Value + Others | @E 999999999.99 | - | x x x x x x x x x x x x x x x x | - | - | 1 | xx | - | - | - | S | - | - | - | - | - | - | - | - | - | - | - | - | S | - | - | N | N | N | - | - | - | 1 | 1 | - | - | - | 121554 | 0 |
| RB5 | 13 | RB5_TIPO | C | 1 | 0 | Tipo Result. | Tipo Result. | Result Type | Tipo Resultado | Tipo Resultado | Result Type | @! | Pertence("GI") | x x x x x x x x x x x x x x x x | - | - | 1 | xx | - | - | - | N | V | - | - | - | - | - | - | - | - | - | - | - | S | - | - | N | N | N | - | - | - | 1 | 1 | - | - | - | 121555 | 0 |
| 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_ |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| RB5 | 1 | RB5_FILIAL+RB5_PESQ+RB5_FUNCAO+RB5_REGIAO+RB5_PORTE | Cod.Pesquisa + Cod.Funcao + Cod Regiao + Porte | Cod. Encuest + Cod.Funcion + Cod. Region + Porte | Survey Code + Job Code + Area Code + Size | S | - | - | S | 2 | 3 | - | 17584 | 0 |
Ela é utilizada para resultados pesquisa dentro do sistema ERP Protheus.
Nesta página você pode visualizar todos os campos, incluindo tipo, tamanho e validações.
Os índices são estruturas que melhoram a performance de busca e acesso aos dados dentro do Protheus.
Modelo de query gerado automaticamente com base na estrutura da tabela.
SELECT
RB5_FILIAL,
RB5_PESQ,
RB5_FUNCAO,
RB5_DESCFU,
RB5_REGIAO,
RB5_DESCRE,
RB5_PORTE,
RB5_CORTE,
RB5_VLCORT,
RB5_CODVL,
RB5_VALOR,
RB5_VLOUTR,
RB5_TIPO
FROM RB5
WHERE
D_E_L_E_T_ = ' '
AND RB5_FILIAL = 'VALOR'
AND RB5_PESQ = 'VALOR'
AND RB5_FUNCAO = 'VALOR'
AND RB5_DESCFU = 'VALOR'
AND RB5_REGIAO = 'VALOR'
AND RB5_DESCRE = 'VALOR'
AND RB5_PORTE = 'VALOR'
AND RB5_CORTE = 'VALOR'
AND RB5_VLCORT = 0
AND RB5_CODVL = 'VALOR'
AND RB5_VALOR = 0
AND RB5_VLOUTR = 0
AND RB5_TIPO = 'VALOR'